Forum Moderators: not2easy

Message Too Old, No Replies

style type definition not working

style type definition not working

         

xray012

10:02 pm on Dec 14, 2003 (gmt 0)

10+ Year Member



Hi ime trying to use the style below, but somehow its not working, whats my error?

<style type="text/css">
<!--
#house {
A:link { text-decoration: none; color:"#00579A" ;}
A:visited { text-decoration: none; color:"#00579A"; }
A:hover { text-decoration: underline; color:"#BCAF1C"; }
BODY {font-size:10pt; font-family: Tahoma, "";}
H1 {font-family: Verdana; font-size: 25pt; Color:"##00A800"; padding-top: 0px; padding-bottom: 0px; margin: 0; }
P {margin: 6;} }
-->
</style>

ime calling it with;
<div id="house">

Any En-Lightment would be great!

iamlost

12:33 am on Dec 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You have several errors - check out the differences between your code and the following:



<style type="text/css">
body {
font-size: 10pt;
font-family: Tahoma, "";
}
#house {
padding-top: 0;
padding-bottom: 0;
margin: 0;
}
#house a:link {
text-decoration: none;
color: #00579A;
}
#house a:visited {
text-decoration: none;
color: #00579A;
}
#house a:hover {
text-decoration: underline;
color: #BCAF1C;
}
#house h1 {
font-family: Verdana;
font-size: 25pt;
color: #00A800;
}
#house p {
margin: 6px;
}
</style>

You need to remove the html comments <!-- --> or compliant browsers may ignore it.
You might also want to consider using "px" or "em" in place of "pt".

Hope this helps.

xray012

11:22 am on Dec 15, 2003 (gmt 0)

10+ Year Member



it helps indeed! :)

thank you very much , i've been troubling on this too Long :S

ThnX