TranceAddict Forums

TranceAddict Forums (www.tranceaddict.com/forums)
- Chill Out Room
-- Css


Posted by Turbonium on Oct-23-2003 01:49:

Css

Ok, so let me get this straight, the style "classes" are all at the start of an HTML file, and enclosed by a


/me is confused, these online tutorials, grrrr....

Where the hell do you make the CSS file? Is there even such a thing?


Posted by Turbonium on Oct-23-2003 01:51:

http://www.w3schools.com/css/css_howto.asp

The first thing said on that page... external style sheet... So wtf, is the external style sheet an HTML file in the same directory as the main page?


Posted by Turbonium on Oct-23-2003 01:53:


href="mystyle.css" />



So is the name of the CSS file "stylesheet" and the filetype a .txt (css) file?


Posted by Turbonium on Oct-23-2003 01:54:

Ok nm I think I get it, I didn't even read half of it, and just assumed it wouldn't explain (looks like my guesses were right, I think).


Posted by Turbonium on Oct-23-2003 04:13:

Ok here's a good question:

HTML code
___________________________________________________________






This paragraph will be right-aligned.




___________________________________________________________

CSS file

p {margin-left: 60px}
body {background-color: blue}
z {color: white}
___________________________________________________________




So my question is, what in the hell is the point of typing in the "right" in

in the HTML document. It works without it, like this:

. I don't see the logic in putting it there, what's the point?


Posted by electric_soul on Oct-23-2003 06:16:

the point is:

code:
this text is courier

this text is arial, 11px, blue

DANGER: do not shove a 110v wire up your ass!!! (text in arial, bold, red color and 30px)

this is arial 11px, blue

goes again in courier

in your code using

is pointless. But look at my code.
Also, re-read the cascading part about CSS.


Edit:

no "/" needed, as is HTML 4.01 transitional.



Powered by: vBulletin
Copyright © 2000-2021, Jelsoft Enterprises Ltd.