Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   HTML / XHTML / CSS (http://www.programmingforums.org/forum27.html)
-   -   why CSS (http://www.programmingforums.org/showthread.php?t=8919)

mrynit Mar 17th, 2006 4:08 PM

why CSS
 
why is using CSS such a good thing? i know it can be used to globaly change the apperace to web pages with just one file. But it doest change the content of page. please tell me the advantages of using it. i personaly dont see why to use it.(i have never done any big time web devepment)

Polyphemus_ Mar 17th, 2006 5:26 PM

The reason you can change your website's lay-out is an important reason, of course. Another is cleaner, better structured code (for example: the lay-out and the content of the webpage is splitted).

ReggaetonKing Mar 17th, 2006 6:36 PM

As Polyphemus said, a cleaner and more structured code. CSS allows a lot of great effects and enables you to fully have controll over the site's layout and design. CSS is very easy to learn and it's great!

a thing Mar 17th, 2006 7:08 PM

  • It's easier to manage your code.
  • It uses less bandwidth, considering the CSS file is cached, which it usually is. See the filetype stats for my server.

Quote:

Originally Posted by mrynit
But it doest change the content of page.

It's not supposed to. It's just a stylesheet language. Use XHTML for the content.

MrMan9879 Mar 17th, 2006 7:43 PM

A note to a thing...

Your link goes to the IP address: 192.168.1.111. That is not really your IP address. I'm guessing that you are behind a router firewall. Routers give an IP address to hide your real one from the rest of the world. If you're connecting to your server on your own computer, or on LAN, you can use that IP address, but for the rest of the world, we have to use your real IP address.

Here's a link to a page that shows your real IP address: http://www.ipchicken.com/

a thing Mar 17th, 2006 7:56 PM

Heh, whoops, I used that to test it without going through the Internet. It's a big page, 81KB, that takes 2 seconds to load & render using the LAN IP and my server's on my home connection. Here's the link:
http://a-thing.is-a-geek.net/stats.xhtml#filetypes
(It won't let me edit anymore.)

ReggaetonKing Mar 17th, 2006 7:57 PM

Ask MJordon2nd to edit it for you or delete it.

AICkieran Mar 17th, 2006 8:35 PM

Quote:

Originally Posted by mrynit
why is using CSS such a good thing? i know it can be used to globaly change the apperace to web pages with just one file.

You answerd your own question there pretty much.

Picture this, You have a large website with a few hundred pages or more, You're getting bored of the style of your pages, Would you rather edit each page or 1 file.

Also it allows you to keep a more consistant look easier. You dont have to mess around applying the same styling to each new page, Just include the global stylesheet

Hope this answers your question.

-kieran

Lich Mar 17th, 2006 11:30 PM

Quote:

Originally Posted by mrynit
why is using CSS such a good thing? i know it can be used to globaly change the apperace to web pages with just one file. But it doest change the content of page. please tell me the advantages of using it. i personaly dont see why to use it.(i have never done any big time web devepment)

Imagine this:, say you were working for a client and he says he want's to use all of X part of a page to have blue text. So you type
[HTML]<font color="#0000FF">Text here...</font>[/HTML]
And you finish the website. There's 80+ pages on there with the blue text somewhere in there. Then out of the blue he decides, "you know what, I want that text to be red instead". So now you have to go through and edit each page yourself to change the text. Now, if you'd used CSS on those pages, you would have put in:
[HTML]<span class="coloredText"Text here...</span>[/HTML]
That code would link to the CSS file you define that has the class colouredText defined, and in there you change #0000FF to #ff0000 and the whole site is updated.

That's why we use CSS. it saves time, money, bandwith, etc. No reason not to use it.

mrynit Mar 18th, 2006 12:48 AM

:banana:
time to use css


All times are GMT -5. The time now is 5:11 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC