Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17550

Re: Varying widths according to size of screen

Subject Re: Varying widths according to size of screen
Newsgroups comp.lang.php
References <7b0f297c-2517-4629-ace6-e896e2d9fcd6@googlegroups.com>
From Richard Damon <Richard@Damon-Family.org>
Message-ID <LR6dB.147831$c46.59787@fx03.iad> (permalink)
Organization Forte - www.forteinc.com
Date 2017-07-23 15:32 -0400

Show all headers | View raw


On 7/23/17 2:28 PM, bit-naughty@hotmail.com wrote:
> If I have some search results, say, like you get on an E-commerce site, I would like the number of items per line vary according to the size of the screen - eg. if there are 10 say, handbags, if the screen width is short, I would like there to be 4 handbags on the first 2 lines, and 2 on the last one. But if the screen is BIG - then there should be 5 on each line. How do I architect this? (if it's a table they're in, then - tables have <tr>s, not just <td>s, ie. you have to TELL it where each row ends...)
> 
> ...I'm not sure this is the right group, or the HTML one, or the CSS one, or the MySQL one.... but this LOOKS most appropriate :)
> 
> 
> Thanks.
> 

The correct answer is you likely want to ask in an CSS group (or as a 
fallback an HTML one) for the best answer, and part of the answer is 
that you DON'T build the results with a table. Formatting via a table 
directives is an ancient method, with the problems like you are 
experiencing.

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Varying widths according to size of screen bit-naughty@hotmail.com - 2017-07-23 11:28 -0700
  Re: Varying widths according to size of screen "J.O. Aho" <user@example.net> - 2017-07-23 21:30 +0200
  Re: Varying widths according to size of screen Richard Damon <Richard@Damon-Family.org> - 2017-07-23 15:32 -0400
  Re: Varying widths according to size of screen Mark Lloyd <not@mail.invalid> - 2017-07-24 10:25 -0500

csiph-web