Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- Separation of Style, Structure & Content


csuguy - 12:29 am on Aug 15, 2008 (gmt 0)


@buckworks

the purpose of the id is not so that the structural css can be restated in an external file. The purpose of the id is so that style css can be used in an external file - separate from the structure code.

And of course - I wrote it inline with the assumption that you were using Server-Side Programming to piece the files together. If you weren't using Server-Side Programming, no you wouldn't want inline styles - but you would want to separate the style css from the structure. And - IMHO - your HTML code (using comments if need be) should very clearly define the structure of your page. It's fine to use css to define the structure, but what can be done in HTML to show the structure should be used. I gave an example case in an above post that is pretty common for CSS-Div sites - the html file gives no indication of the structure of the page.

I believe mixing your structure with your style is just as bad as mixing your style with your content - ideally all should be separated.


Thread source:: http://www.webmasterworld.com/css/3721842.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com