Zor Productions...no, ZorTech has received a makeover!

Started by Phemar, Mon 26/04/2004 18:20:52

Previous topic - Next topic

shbaz

Quote from: AGA on Thu 29/04/2004 21:33:24
Plus you can totally change the colour and font scheme of your site by only changing a couple of lines of CSS.

Kind of like a <body> tag?  ???
Once I killed a man. His name was Mario, I think. His brother Luigi was upset at first, but adamant to continue on the adventure that they started together.

Ashen

I know what you're thinking ... Don't think that.

LordHart

No, changing it that way would take a long time. What he means is that you link to the CSS file from all your pages, and then whenever you want to change something, you just change it in the single file instead of every single one...

It's much quicker, and you get more control than using the old HTML tags and properties, like the properties for <BODY>. For example, if you wanted to have a background colour of red, you used to go <BODY BGCOLOR="red">, and change that for every page... now all you need is to have <link rel="stylesheet" type="text/css" href="filename.css" /> inside of the <HEAD> tags... and then inside the CSS file, you would have:

body {background-color: red;}

Plus, you can setup any other formatting that your site could need... such as the font. The <FONT> tag is no longer going to be supported in the future, and instead you would add to the body to have this:

body {background-color: red; font-family: arial, verdana, times new roman;}

You are not limited to the body tag either. You can use it for any HTML tags. Plus, if you set up something like:

<p id="paragraph1">Wooh!</p>

And then have:

p#paragraph1 {stuff here}

Then you can set things up for different paragraphs and such to have their own unique look. If you wanted one to have the same look as another, then you would replace the id part with a class for something like this:

<p class="paragraph1wooh">WOOOH!</p>
<p id="paragraph1">EIRGH</p>
<p class="paragraph1wooh">WOOOH!</p>

And then have in the CSS:

p.paragraph1wooh {stuff here}

Then the first and third line would look alike, and the second would look differently. The difference is that ID's can only be used once inside the HTML, but CLASSes can be used multiple times...

Um... I've kinda gone on too long about it here... try www.alistapart.com for stuff about it, and stuff... yeah... ;D

shbaz

Nice.. I hadn't heard of it until this thread. I haven't messed with html since I was 14 either though.
Once I killed a man. His name was Mario, I think. His brother Luigi was upset at first, but adamant to continue on the adventure that they started together.

Phemar


Just like a GUI, instead of hand drawing the GUI on every backgroundand using hotspots, You make something that can be edited in every room by on mouse click! Brilliant!....

SMF spam blocked by CleanTalk