® 

|
At the bottom of the page, there is a link to a print ready version. |
The Purpose of Cascading Style Sheets Pro and Con with Cascading Style Sheets Browser problems CSS Rules for Sub-Headings CSS for Handheld Devices |
|
|
Please note: Every link on this page opens in a new window. If your "Pop-up killer" is too efficient it can also stop new windows. When this happens, please press "Ctrl" and click on the link you want. The purpose of Cascading Style SheetsThe HTML code is developed and renewed by the World Wide Web Consortium - W3C. Due to requirements mainly by big websites, the organization has been striving to separate content and page structure. This is done with CSS ( Cascading Style Sheets ) specifying the display ("the look" of the page). Info about style sheets is found inWith the content separated from the display instructions it was thought easy to prepare different kinds of documents for different uses and systems ( platforms ), like webpages and XML documents, while the content is identical in the different documents. An other reason for separation of content and structure is the increasing use of Content Management Programs. These programs require separation of content and structure. With a website having about 100 interlinked pages it's still possible - with a very good memory - to manage and up-date content ( including links ) manually. When you get more ( even 10.000+ ) pages it's no longer possible without a special computer program. The more complicated content management system you get the more time you will spend managing your system, instead of spending your time developing better content. Some blogging tools ( for instance Wordpress ) can be used as a simple Content Management System to update and manage your websites. With less than 100 webpages you still don't really need to use full style sheets and content management, you can use Desktop Search. Most search engines offer a free desk top search engine program but I would hesitate to download any of those. I prefer for myself something independent from search engines. |
![]() Cristina's Website Design and SEO |
Pro and Con with Cascading Style SheetsFurthermore, I do not recommend using special font or some funny font and link colours. Everyone reads easiest and fastest the kind of text ( font ) he/she is accustomed to. When you do not specify the font in any way, you don't need CSS at all. See also Don Pedro's Writing your Page Code.The only instance I can think of, where style sheets are better than HTML, is when you make pages especially intended to be "viewed" by screen reader. In addition to that, there can be some occasion when there's reason to use a single or may be two CSS tags for some special effect that's not possible to produce by HTML. See 3-column layout with CSS or you can employ a 3 column CSS code generator, which gives you a template you can then use for every page. Style Sheets for printer friendly copies or pages. CSS would also be useful for those site owners who have a lot of dynamic content ( changing content ) like: blogs, forums, pictures of products ( e-stores ) where big groups of pages need layout changes at same time. With CSS that work could be done faster and cheaper. Otherwise changing the outlook ( design ) of all your pages - once the website is already well known and recognized by visitors - would be like changing the image of your main product or may be for your company. What if Coca Cola suddenly decided to change the look and feel of their bottles? When you absolutely have to use full style sheets you can compress the code, thus getting faster download or you can download a code "compressor". Generally one can say the more complicated the code, the greater the headache. I have read about a website where the CSS code on every page was 27 print-out pages! When you have to put either the style sheets or a call up code ( with style sheets as external scripts ) in your <HEAD> section it doesn't work on free servers. If you use your external style sheets to hide something from the search engines -beware: in December 2006 Google started to index external style sheets with the express purpose to detect spam. List of links to CSS coding and de-bugging sites. See Common CSS problems. Style sheet scripts for experimentation with translations into French, Italian, and Spanish. A very comprehensive reference source for CSS. |
Browser problemsWhen the browsers save the style sheets in the cache ( browser memory ), only the first webpage of a website downloads a little bit slow, while all subsequent pages from the same site should display very fast, because the display instructions ( CSS ) are already in the browser's cache.Unfortunately all browsers do not work the way the planners intended them to do. Mozilla Firefox is saving style sheets separately. It's what usually happens when architects and other planners want people to do something in a certain way. Most people find it easier to do it their own way instead. Because different browsers download the style sheets' differently the result is a CSS page is sometimes displayed more slowly than a page in simple HTML. Firefox v. 3.0, Opera, and Safari do read Cascading Style Sheets reasonably well, but problems still persist. CSS 2 was furthermore not designed with three-column lay-out in mind. CSS 3 has therefore been added in 2007 with a grid positioning module. But it will take a long time before browser manufacturers have got that included. And even longer before those browsers come into common use. Because all browsers have some ( different ) bugs, there are certain CSS properties that doesn't work very well. The most common way to deal with this is to write browser specific CSS code and employ a "browser sniffer". In other words the CSS code is hidden in JavaScript, which makes it even longer and more complicated. A good example of problems with this approach is the release of IE7. Most webpages that were built with unconditional browser specific code broke down. This was because IE7 is slightly more standards compliant than IE6. In other words the problem wasn't IE7, the problem was the old bugs in IE6 had been fixed in IE7. Of course, a browser specific code isn't standards compliant either. All webpages that relied on tables based layout and transitional doctype tag worked just fine. When deciding between CSS positioning and layout tables use your common sense. If you want to experiment, that's fine as long as the result is intended for yourself and your peers only. If you want the maximum number of visitors to enjoy your webpage use what works best - that's still layout tables. Layout tables are and will stay ( for the foreseeable future ) the easiest and the most reliable way to arrange horizontal display of content blocks on a computer screen. See also about XHTML and layout. Firebug 1.0 β, free (donations accepted) CSS editor and JavaScript debugger. Works as a Firefox extension. Solutions to Bugs & Cross-Browser, Cross-Platform Issues (CSS). |
|
||||||
Last updated: |
|
since Feb. 04, 2005 according to: www.digits.com/ |