hmm. for example, try this out.
instead of the following lines:
Code:
.pricetable {
border-top-width: Medium;
border-right-width: Medium;
border-bottom-width: Medium;
border-left-width: Medium;
border-top-style: none;
border-right-style: solid;
border-bottom-style: none;
border-left-style: solid;
border-right-color: #1C6A9B;
border-left-color: #1C6A9B;
font-size: small;
color: #0092CD;
}
you can do virtually the same thing with:
Code:
.pricetable {
border: 3px solid #1c6a9b;
font-size: 10px;
color: #0092cd;
}
now, 10 lines become 3.
watch for things that repeat. what you were using could be useful if all sides were different colors and sizes. But, because all the sides are exactly the same, you can just merge them all into one item with the border property.
this will make your webpage unbelieveably smaller, too. especially if you have 10, 20, 50, 100 divs like this, as i think you may.
 hope this helps, someone correct me if i'm wrong.
|