Forum Moderators: not2easy
.centered {text-align: center;}
and one (let's call it class2) for other style type stuff (let's say I wanted to apply this second class to text, but I didn't necessarily want it all centered).
Could I do something like:
<div class="centered,class2">
text
</div>?
#footer {
padding:20px 10px;
text-align:center;
}
#new-news {
float:left;
width:200px;
height:auto;
border:3px solid #000;
}
.redfont {
font:12px/16px georgia, palatino, serif;
color:#c00;
background:#fff;
}
.small-font;
font:10px/13px;
color:#009
bacground:#ccc;
}
</style>
Positioning can be applied to the unique elements while the actual style of the content may be applied using a general class statement.
<div id="new-news" class="redfont"></div>
- papabaer