Luis Speciale wrote: > I’m trying to conceive a simple layout with no workarounds or hacks, > to see how far it stands.
> I will be happy to hear (to read) your comments, if appropriate !-) > > http://luis-speciale.net/centre.html Pretty good, but you're using "the wrong" centering method. Page disappears beyond left window-edge on narrow windows, which means that part is out of reach. Since you're that close, I've made a copy, upgraded the doctype and adjusted it all a bit... HTML: <http://www.gunlaug.no/tos/alien/test_07_3202.html> XHTML: <http://www.gunlaug.no/tos/alien/test_07_3202.xhtml> CSS: <http://www.gunlaug.no/tos/alien/basic003.css> ...just to make sure it is _really_ worth the candle :-) A few changes in the source-code, and some more substantial ones in the stylesheet. - It centers and nothing gets lost - important. - It adheres to a 'Strict' doctype - important - It follows the rules for XHTML served as either 'text/html' or the more proper 'application/xhtml+xml' - which it should if it is to be called XHTML, regardless of how it's actually served. Note: It's quite possible to create something without actual hacks, but I don't think it is possible to create many layouts without some kinds of workarounds - not yet. Your use of a 'Transitional' doctype is a workaround, and the fact that you omitted the 'xml-declaration' is another. Generally: if you decide to omit the 'XML declaration' you should choose either UTF-8 or UTF-16 as the encoding for the page. Although probably nobody will notice the difference, it is better to do it right. The often mentioned "box-model problems" are not real problems (IMO), and are easily corrected in CSS. Some more on the subject here... <http://www.w3.org/International/articles/serving-xhtml/Overview.en.php> I prefer to go into CSS3 to make it work, rather than using HTML attributes that aren't allowed in 'Strict' - image-borders for instance. Seems like a minor issue, but 'Transitional' wasn't meant to be used for new documents - only for temporary upgrading of old ones. Since you're learning and working on a new layout, you might as well get these minor details correct from the start. regards Georg -- http://www.gunlaug.no ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
