![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
[cross posted, Follow ups set to ciwas] I'm using CSS to style a page. The page has a heading block, two columns, and a footer. Here's the css for the two columns: #leftstuff { float: left; width: 44%; margin: 0; padding: 1em } #rightstuff { width: 44%; margin-left: 50%; padding: 1em } Using this I have to have two divs in the html. So I have to balance the two columns using my skill and judgement - a sub optimal approach. Is there any way I can get the two columns to 'flow'? |
#3
| |||
| |||
|
|
In article <Xns9A2E71DF4C6C5YAsfKJXSTO (AT) 194 (DOT) 117.143.38>, bealoid <signup (AT) bealoid (DOT) co.uk> wrote: [cross posted, Follow ups set to ciwas] I'm using CSS to style a page. The page has a heading block, two columns, and a footer. Here's the css for the two columns: #leftstuff { float: left; width: 44%; margin: 0; padding: 1em } #rightstuff { width: 44%; margin-left: 50%; padding: 1em } Using this I have to have two divs in the html. So I have to balance the two columns using my skill and judgement - a sub optimal approach. Is there any way I can get the two columns to 'flow'? If you mean, "Can I get text to automatically fill the first column, and then overflow by filling the second?" I don't think so. (At least, not with html/css only) |
|
However, it would be good to know what effect you really want to achieve here: if you are looking to reproduce the two-column page layout you might find in a book or magazine, I would strongly suggest NOT to do so for a web page: trying to read text that is so formatted on a screen is really annoying, due to the regular necessity to scroll up/down when moving from one column to the next. |
#4
| |||
| |||
|
|
David Stone <no.email (AT) domain (DOT) invalid> wrote in news:no.email-0DB7E8.08230123012008 (AT) news1 (DOT) chem.utoronto.ca: In article <Xns9A2E71DF4C6C5YAsfKJXSTO (AT) 194 (DOT) 117.143.38>, bealoid <signup (AT) bealoid (DOT) co.uk> wrote: [cross posted, Follow ups set to ciwas] I'm using CSS to style a page. The page has a heading block, two columns, and a footer. [snip] Is there any way I can get the two columns to 'flow'? If you mean, "Can I get text to automatically fill the first column, and then overflow by filling the second?" I don't think so. (At least, not with html/css only) Yes, that's what I wanted. I don't want to use anything but html and css. I understand there might be something in CSS3, but it's not implemented in many (any?) browsers yet. [snip] I have a long list of items, each with a small amount of text, a link, and an image. (All the images are 300 pixels wide.) There's no order to the list. At some point I might have several lists of different categories of item, with a sub-header for each. Here's a monospaced font diagram :- HEADING sub heading list list list list list list list list list |
#5
| |||
| |||
|
|
[cross posted, Follow ups set to ciwas] I'm using CSS to style a page. The page has a heading block, two columns, and a footer. Here's the css for the two columns: #leftstuff { float: left; width: 44%; margin: 0; padding: 1em } #rightstuff { width: 44%; margin-left: 50%; padding: 1em } Using this I have to have two divs in the html. So I have to balance the two columns using my skill and judgement - a sub optimal approach. Is there any way I can get the two columns to 'flow'? |
#6
| |||
| |||
|
|
On 23/1/08 11:11 am, in article Xns9A2E71DF4C6C5YAsfKJXSTO (AT) 194 (DOT) 117.143.38, "bealoid" <signup (AT) bealoid (DOT) co.uk> wrote: Is there any way I can get the two columns to 'flow'? Not yet. I think there will be a column attribute in CSS3 but it's going to be a while before it's safe. Bloody brilliant idea though (assuming you can overcome potential accessibility issues). |
#7
| |||
| |||
|
|
[cross posted, Follow ups set to ciwas] I'm using CSS to style a page. *The page has a heading block, two columns, and a footer. Here's the css for the two columns: #leftstuff { * float: left; * width: 44%; * margin: 0; * padding: 1em } #rightstuff { * width: 44%; * margin-left: 50%; * padding: 1em } Using this I have to have two divs in the html. *So I have to balance the two columns using my skill and judgement - a sub optimal approach. Is there any way I can get the two columns to 'flow'? Give us a URL to look. |
![]() |
| Thread Tools | |
| Display Modes | |
| |