Hey all,
I am wondering if I can cut down on my CSS via efficient use of inheritance. My goal is for my CSS 2.x to work with IE5+ and Mozilla 1.6+. If I can get rid of all my font-family: arial; tags for starters that would be great. Given my below example which ones do you think I can eliminate?
Thanks,
JT
I am wondering if I can cut down on my CSS via efficient use of inheritance. My goal is for my CSS 2.x to work with IE5+ and Mozilla 1.6+. If I can get rid of all my font-family: arial; tags for starters that would be great. Given my below example which ones do you think I can eliminate?
Code:
body { font-family: arial; font-size: 14px; color: black; background-color: #ffffff; }
th { font-family: arial; font-size: 14px; color: white; background-color: #006666; }
td { font-family: arial; font-size: 14px; color: black; vertical-align:text-top; }
p { font-family: arial; font-size: 14px; color: black; }
h1 { font-family: arial; font-size: 20px; color: #006666; font-weight: bold; }
h2 { font-family: arial; font-size: 16px; color: #006666; font-weight: bold; margin: 5px 0 0 0; }
h3 { font-family: arial; font-size: 16px; color: black; font-weight: bold; margin: 5px 0 0 0; }
hr { margin:0px 0px 0px 0px; }
ul { margin:0 0 25 0;}
img { border:0 }
a:link {color:black; font-family:arial; font-size:14px; }
a:visited {color:black; font-family:arial; font-size:14px; }
a:active {color:black; font-family:arial; font-size:14px; }
a:hover {color:#006666; font-family:arial; font-size:14px; color:white; background-color:#006666; }
Thanks,
JT