View Single Post
Old 13-04-2008, 02:51   #1 (permalink)
turbo_j
Registered User
 
Join Date: Feb 2007
Posts: 8
Combining divs and classes

How do I reuse a block of code put in a class, sort of like the code below ?

.reusable {
float:left;
width:178px;
padding:8px;
margin:0 3px 0 0;
}
#container, .reusable {
background: url(../images/sb.jpg) no-repeat top left;
background-color:#e0f2ff;
}

thanks
  Reply With Quote