|
|
Benefits Of Seperate Css - read more inside | ||
Discussion by l337 Nurse Pedestrian with 10 Replies.
Last Update: July 3, 2005, 3:32 pm | |||
![]() |
|
|
Having an external style sheet makes it so you can use the same style on on all your pages and you can update formating for the whole site much faster; just change one .CSS file, not every web page. I personally use an external style sheet on my web site It's much easier in the long run.
Basically your HTML or XHTML file should only have content-based information, and your CSS stylesheet is all the presentational information. Having them in two places helps to even more demarcate your content and your presentation.
You can find it here: http://www.sitepoint.com/article/tables-vs-css
I personally use classes and IDs and such for every bit of content in a webpage, coz that way an external stylesheet just makes it SO easy to change the ENTIRE look and style without having to go through each page. It's amazing, and that's why its good to have your stylesheets external. It also makes it easier if you want to add or change little bits of style in your pages, and it just helps keep the overall site neat and organised. Plus, you dont have to keep repeating yourself page after page with the same codes and styles.
If you know how to use all the properties and such in a stylesheet, then you'll come to see that you can change the entire LOOK of a page just by messing with external CSS. Easy!
QUOTE (chiiyo)
Basically your HTML or XHTML file should only have content-based information, and your CSS stylesheet is all the presentational information. Having them in two places helps to even more demarcate your content and your presentation.Word. Having separate CSS stylesheet and writing XHTML is kind of a step towards semantic web from your behalf. "Getting used to the idea".
I personalyl like to have multiple separate CSS files. For example, I have a file called menu.css which I include (or to be accurate, link) in every page I have a side menu on my site. It is so easy to use the same classes and have identically looking menus on all my pages. And when I want to change colours or fonts or what ever its one file edit.
I usually also have a "generic" css fle in which I have the setting that usually every page has. Such as links (I like to have similar links in every page) and bottom copyright div class.
I do wish they'd make a decision on the screen reader and accessibility CSS.
QUOTE (chiiyo)
I actually have "screen.css" and "print.css" so I can have one set of CSS for screen layouts (normal day-to-day browser usage) and one for printing only (without menu, in serif font, text extends to whole of page).This is really good idea. I have several pages with "screen.css" but then never bothered to a a printable version. Generally speaking using different style sheet for different medias (in addition to paper and desktop screen, for example PDAs) is something that I like as coding style.
Similar Topics:
Disk Read Error
Most Christians Did Not Read The Bi...
Computers To Read Lips
Web Design For Free Good applications to design an webpage (12)
|
(24) Adobe Buys Macromedia
|
HOME 






