easiest way to redefine a class
Say you want to just change one property of a class every instance its used - whats the easiest way to do this? I have created a class and would like to change the background color to a different color each time i use it.
[color=darkred:180tf02l][size=84:180tf02l]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>bkgd</title>
<style type="text/css">
<!--
.sections {
padding: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 5px;
margin-left: 0px;
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
position: relative;
width: 800px;
}
}
-->
</style>
</head><body>
<div id="cont">
<!--background-color: different colors for each instance of section -->
<div class="sections">red background</div>
<div class="sections">blue background</div>
<div class="sections">green background</div>
</body>[/size:180tf02l][/color:180tf02l]