PDA

View Full Version : * css



BubikolRamios
Dec 24th, 2008, 01:44 PM
how to applay all this, not to all document, only to one class and all its descendants, having in mind that some css propertis are not inherited.

Or this is no go ?



*
{

font-family:'Courier New','Andale Mono',Lucidatypewriter,Fixed,Monospace,serif, sans-serif, monospace, cursive,fantasy;
font-size:0;
border:0;
border:none;
margin:0;
padding:0;
outline: none;
text-decoration:none;
}

BubikolRamios
Dec 24th, 2008, 01:48 PM
hmm, tested it, putted instead of * , myclassname
and it works

abduraooft
Dec 24th, 2008, 01:48 PM
Did you mean

.mydiv , .mydiv *{ /* common rules for .mydiv and all inner elements of .mydiv */

}

<div class="mydiv">

<!-- some elements here... --/>
</div> ?