3 ms·
You should tell that to the guys over at CSSZenGarden... they'll get a good chuckle.
by pxlpshr 18y ago
You should tell that to the guys over at CSSZenGarden... they'll get a good chuckle.
- olavk 18y agoThe CSSZenGarden is - as mentioned in the article - a special case because the content never changes. This means that some of the flexibility issues with CSS is not a problem. You can design everything with fixed sizes and positioning. Every single paragraph is assigned a unique id which you can address. This approach will never work on "real" web site, because content on a real web site changes.
- pxlpshr 18y agoWhether or not the content is static or dynamic is kind of a moot point, all things considered. <div style="define-my-location"><?php ?></div>
- olavk 18y agoNo. That is the main point of the article. Pure-CSS layout is only fine if you know the exact dimensions of the text when creating the layout. If the textual content change later you run into problems. That is why tables fare better in "the real world" even if proof-of-concepts like zen-garden seem to demonstrate that CSS is powerful enough.
- pxlpshr 18y agoIn the case of your example, if you truly have a label that resides beside an input box that could hypothetically be as long as a sentence... then you've done more wrong in your content structuring, than you have with your code. :) As far as your column example is concerned, you made two content areas dependent on each other when that relationship may change overtime too, however with tables... you must recode the entire site structure to adapt to that.