![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Also, is there a nice cross-browser approach which delivers two-column layouts in CSS, without resorting to table-layout? |
#3
| |||
| |||
|
|
Philipp Lenssen wrote: Also, is there a nice cross-browser approach which delivers two-column layouts in CSS, without resorting to table-layout? Lots. http://dorward.me.uk/www/css/#templates links to bunches. |
#4
| |||
| |||
|
|
Philipp Lenssen wrote: Actually, I should have phrased it differently... are there any crossbrowser two-column layouts implemented in CSS exclusively -- in the sense that I don't have to split up the HTML into separate divs etc. Well, in that case, we'd need to see the markup. (Templates offered on the net are, by necessity, created with no content in mind.) |
|
('cause I know how to do that already, but don't see a huge advantage to using tables, once done that way -- still a small advantage, yes). I respectfully disagree. Css layouts are more flexible. They can be changed by the author much more easily. More importanly, they can be altered by the user in a way that tables cannot. And they don't interfere with the content (when authored correctly, of course). |
#5
| ||||||
| ||||||
|
|
The problem is that certain browsers, especially MSIE/Win, are limited in their css abilities. Css 2 selectors can be used to access the elements and manipulate them. .productDetails .content P { } /* 1st p element in #content */ .productDetails .content P + P { }/* 2nd p in #content */ .productDetails .content P + P + P { }/* 3rd p in #content */ |
|
There is good reason not to try to make 3 columns on a web page, since you don't know the properties of the display mechanism. So the question is, why do you want this? Answer is likely: the client wants it. Well, one should try her or his best to explain to the client why that is difficult and inadvisable. If you simply say, "that can't [or should not] be done," they may get frustrated. Perhaps giving reasons will help them accept this fact as an advantage, rather than perceived as a limitation. |
|
Perhaps this is why you argue that there is not much of an advantage to proper markup (div, p, etc) over improper markup (table, td, etc.)? |
|
What's wrong with the following? div class="picAndText" img ... p>...</p /div |
|
I can get this to work in NS4 Increasingly, authors are giving up on css and NS4. |
|
Perhaps my audience was more receptive than most would be. But in any case, this is a different question. Is proper markup better than improper markup? Of course. Is it easy to convince a layperson of this? I don't know the answer to that. |
![]() |
| Thread Tools | |
| Display Modes | |
| |