UGN Security
Posted By: Moffesto Is there a point to CSS? - 10/10/02 06:00 AM
Is there a point to have CSS? I was just wondering, im reading a tutorial and it just looks like a easy language to create sites with rather than html. Is there any good reason to use it other than it looks easier?

After messing with it i find it rather useful to use classes and how much it makes it easier.
Posted By: SilentRage Re: Is there a point to CSS? - 10/10/02 08:42 AM
Is there a point to CSS? Of course there's a point to it! My goodness man, you can create a .css file and save a bunch of settings for borders, spacing, font, colors, and more as a theme for the entire site and have a single LINK tag to tie it in to every page. Saves ya a heck of a lot of work, saves the user download time.

Point number 2... you can do so much more with CSS than you can do with normal HTML (I consider the style property to be a CSS feature).

easier, faster, more powerful, more efficient... What more do you want man?
Posted By: Moffesto Re: Is there a point to CSS? - 10/10/02 09:18 AM
yeah, linking the .css file.. they called that external or soemthing... i havent quiet figured out how to do it but i got the internal down (all the css in the same page rather than linking it)... the tutorial im using is nice but dosent explain to well about the external. Ill check more out tomorrow when im not so tired.
Posted By: Le4rner Re: Is there a point to CSS? - 10/10/02 10:02 AM
Code
 <head>
<title>Some title</title>
<LINK REL=stylesheet HREF="http://rrfn.promodtecnologies.com/style.css" TYPE="text/css">
</head>
This concludes your lesson on how to link a style sheet.
Posted By: Cold Sunn Re: Is there a point to CSS? - 10/11/02 07:04 AM
As usual, I found HTMLGoodies to be a good source for CSS kind of stuff.
http://www.htmlgoodies.com/beyond/css.html

It is very very useful. One thing I like, is that you can almost create your own tags, using a combination of a class in your style sheet and the <span> tag.

You might know how, but if you did this in the style sheet:
.dark {font-family: tahoma, verdana; color: 122015;}
then you could use the span tag like this: <span class="dark">this is dark text</span> to make that text look how you want.

Don't forget to use it to color your scrollbars, and for link colors and things. The best way to do cool effects is by getting the style sheets from sites you like, and seeing what they used. Also, remember you can use "../style.css" to get the style sheet from a directory up. I used to put a copy of my style sheet in every directory or have the full url to it each time.
Posted By: Moffesto Re: Is there a point to CSS? - 10/11/02 10:09 AM
thanks alot learner, that helped alot... works perfect. I wanna b creative on the project we have in webdesign so im going beyond html and its fun to learn as well.
Posted By: BlackSpider Re: Is there a point to CSS? - 12/07/02 04:02 AM
.css file adding it to you .html file works really nice. I don't know plain .html works, most times, boring. .Css adds something special. Moffesto you should make and use one!
Posted By: §intå× Re: Is there a point to CSS? - 12/07/02 04:08 AM
I learned CSS with webmonkeys tut.

http://hotwired.lycos.com/webmonkey/authoring/stylesheets/tutorials/tutorial1.html
Posted By: BlackSpider Re: Is there a point to CSS? - 12/07/02 04:19 AM
.css isn't that hard to learn and understand...blah:

Code
td               
{
font-family: Verdana, Tahoma; 
font-size: 10px; 
color: #383B3F
}
^^^ something like that. Just save as .css and in your .html file under <title></title> put

Code
<LINK REL=stylesheet HREF="name_of_file.css" TYPE="text/css"> </style>
© UGN Security Forum