Forum Moderators: not2easy
thanx guys :)
BODY { background-color: white }
BODY { margin: 0cm 0cm 0cm 0cm }
BODY {padding: 0cm 0cm 0cm 0cm }
table.greyback { font: normal 65% arial, verdana, helvetica, sans-serif; color: 000000; }
p { font: normal 85% arial, verdana, helvetica, sans-serif; color: 000000; text-aign: left;
}
#text { font: normal bold 100% arial, verdana, helvetica, sans-serif; color: 000000; text-aign: left; }
h1 { font: normal bold 100% arial, verdana, helvetica, sans-serif; color: #000000; }
h2 { font: normal bold 130% arial, verdana, helvetica, sans-serif; color: red; }
h3 { font: normal 60% arial, verdana, helvetica, sans-serif; color: 000000; text-aign:center; }
h4 { font: normal bold 100% arial, verdana, helvetica, sans-serif; color: red; }
h1, h2, h3, p, h4 {display: inline;}
a:link { color: #000000; }
a:visited { color: #000000; }
a:hover { background-color: #FFFFFF; color: #CCCCCC; }
a:active { color: #000000; }
#btmnav { font: normal 80% arial, verdana, helvetica, sans-serif; color: 000000; text-
align: center; }
#btm { font: normal 60% arial, verdana, helvetica, sans-serif; color: 000000; text-align:
center; }
#foot { font: normal 60% arial, verdana, helvetica, sans-serif; color: 000000; text-align: center; }
as usual thankyou for helping me!
steve.
Having said that, here are a few pointers.
You might want to try validating your css with W3C and you'll find some problems.
I hope this helps.
BODY { background-color: white }
BODY { margin: 0cm 0cm 0cm 0cm }
BODY {padding: 0cm 0cm 0cm 0cm }
- To -
BODY{
background-color: #fff;
margin: 0cm;
padding: 0cm;
}
While my example takes more lines, it's probably an ever so slightly smaller file. More importantly, it leads to style sheets that are much easier to maintain!
body element. I removed Verdana from the list as any machine which has Verdana has Arial also, so the second choice would never be called. Also, I've defined the body element color as black, meaning it doesn't need to be repeated elsewhere. Here's what I've distilled:
body {background:#fff;color:#000;margin:0;padding:0;font-family:Arial, Helvetica, sans-serif;}
.greyback {font-size:65%;}
p {font-size:85%;}
h1, h4, #text {font-size:100%;font-weight:bold;}
h2 {font-size:130%;color:#f00;}
h3, #btm, #foot {font-size:60%;text-align:center;}
h4 {color:red;}
h1, h2, h3, h4, p {display:inline;}
a {color:#000;}
a:hover {color:#ccc;}
#btmnav {font-size:80%;text-align:center;} One major issue that I haven't attempted to address is the problems in logic which mean that the stylesheet as such still contains problems. In particular, you are defining certain items such as
h3 with the rule text-align:center;, however, you are also setting it as display:inline;, so the first rule won't work. Without seeing the associated markup, it is impossible to diagnose an appropriate solution.
thankyou again for the great help!.
steve