what's so special ... (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


Eli -> what's so special ... (7/25/2005 6:15:14)

ok - so I'm not up on CSS. To be honest I haven't even dared to investigate it and probably won't until I have a LARGE break in my schedule. But I AM wondering .. what's so special about CSS?




Tailslide -> RE: what's so special ... (7/25/2005 6:28:40)

oh god where to start!

It removes a huge chunk of code from your average HTML page thus speeding up downloading and taking up less space on the web server.

It means that you can make a single change in an external stylesheet which will apply globally throughout your site - no more going page to page to change the colour of headings etc.

You can make the site much more accessible by using CSS to lay the site out rather than tables. You can have your page content first in the code so that text readers get it quickly but you can position navigation first on the visual page.

You can put images (header backgrounds for instance) into the CSS rather than into the HTML and they are only called once when the CSS is first downloaded rather than every time a new page opens with that header.

Basically sites can be lighter-weight, faster, more accessible, easier to change. That said it's also easy to use CSS incorrectly and have sites that are just as slow, heavy or inaccessible as some table-layout, hard-coded styled sites.

The downside of CSS is that it can take some fiddling to get sites looking the same across different browsers - generally though the problems you run into are the same ones and you learn how to get round them.

I'm not overestimating it by saying that a combination of learning CSS and PHP includes has changed my working life beyond belief.




jaybee -> RE: what's so special ... (7/25/2005 6:29:36)

Loads of things.

It reduces page size,
it makes pages more accessible for those using screen readers as they don't get read all the font styles and sizes etc.

and amongst many other advantages, it means that when you want to change a site you alter one line and it changes all your pages.

It is also recommended by W3C and all browsers are heading that way.



Read this

http://www.designer-info.com/Writing/css.htm




dpf -> RE: what's so special ... (7/25/2005 10:03:33)

quote:

To be honest I haven't even dared to investigate it
and it isnt an "all or nothing" thing - you can start slow - using css to control font and H1 etc tags accross all pages while staying with tables for layout as "phase 1"




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875