return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

 
Css
View this Thread in Original format
Turbonium
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?
Turbonium
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?
Turbonium

href="mystyle.css" />



So is the name of the CSS file "stylesheet" and the filetype a .txt (css) file?
Turbonium
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).
Turbonium
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?

electric_soul
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.

CLICK TO RETURN TO TOP OF PAGE
 
Privacy Statement