I am having a problem with keeping my CSS code tidy.
The tutorials deal with individual elements but I have yet to find one which explains how to bolt it all together.
I have the code below which works ok but I am sure it can be tidied up a lot.
I am sure that I have seen examples something like
but I cannot get it to work.
Keith
The tutorials deal with individual elements but I have yet to find one which explains how to bolt it all together.
I have the code below which works ok but I am sure it can be tidied up a lot.
Code:
.adbox1 {
position:relative;
width:180px;
font-size:12px;
color: #000080;
font-family:Verdana,sans-serif;
font-weight:normal;
text-decoration:none;
text-align:center;
display:block;
}
.adbox1 h3{
position:relative;
width:180px;
font-size:14px;
color: #800000;
font-family:Verdana,sans-serif;
font-weight:bold;
text-decoration:none;
text-align:center;
display:block;
}
.adbox1 h4{
position:relative;
width:180px;
font-size:10px;
color: #000080;
font-family:Verdana,sans-serif;
font-weight:normal;
text-decoration:none;
text-align:center;
display:block;
}
Code:
.adbox1 {
position:relative;
width:180px;
font-size:12px;
color: #000080;
font-family:Verdana,sans-serif;
font-weight:normal;
text-decoration:none;
text-align:center;
display:block;
[red]h3{color:#fff000};[/red]
}
Keith