Question:
Why isn't my CSS working?
kat
2009-07-20 09:19:48 UTC
I have used CSS many times before, but for some reason, it's not working this time... could someone tell my why?



body {
background-color: transparent;
font-family : Verdana;
font-size : 8pt;
line-height : 10pt;
text-align : justify;
color : #515151;
cursor: default ;
margin-bottom: 0px;
margin: 0px;


a:link, a:visited, a:active {
color: #9e4f9f;
font-weight: normal;
text-decoration: none;
font-family: Verdana;
font-size: 8pt;
line-height: 10pt;
margin: 0px;
padding: 0px;
text-transform : none;
}


a:hover {
color : #9e4f9f;
font-weight : normal;
text-decoration : underline;
text-transform : uppercase;
}


b {
color : #b84fcb;
font-family : Verdana;
}

u {
color :#2b2924;
}

i {
color: #be92c6;
font-family : Verdana;
}


h1 {
font-family : Georgia;
letter-spacing : 0;
font-weight : bold;
color : #857171;
font-size : 15pt;
text-align : center;
text-transform : none;
line-height : 13pt;
margin : 0;
}


h2 {
font-family : Georgia;
letter-spacing : 0;
font-weight : normal;
color : #857172;
font-size : 12pt;
text-align : center;
text-transform : none;
line-height : 13pt;
margin : 0;
}


h3 {
font-family : Verdana;
letter-spacing : 0;
font-weight : normal;
color : #ffffff;
font-size : 8pt;
text-align : center;
text-transform : lowercase;
line-height : 9pt;
margin : 0;
background-color : #857173;
}

textarea {
font-family : Verdana;
font-size : 8pt;
text-transform : none;
color : #857171;
border : 2px solid #857171;
padding : 5px;
}
Four answers:
2009-07-20 09:27:39 UTC
You're missing the closing brace for the body....





body {

background-color: transparent;

font-family : Verdana;

font-size : 8pt;

line-height : 10pt;

text-align : justify;

color : #515151;

cursor: default ;

margin-bottom: 0px;

margin: 0px;

} !!!!! - this one... lol, these things happen



p.s. it's a very nice style btw, simple and clean looking... I may just snag it for future reference
jbradar
2009-07-20 09:31:34 UTC
If the css is in the html document, it needs to be wrapped in
Achshar
2009-07-20 09:35:20 UTC
he he nice 1 joe...

but there seems to be no prob with your code but you must also add the html you use it in or you save it as css there must b sum prob with html only..
?
2009-07-20 09:24:19 UTC
You forgot to include it in you html file?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...