html - Not all CSS properties will be able to cascade down or some tags will ignore properties from parents? -
my html
<div class="teaser"> <img src="smiley.gif"> </div>
in css, trying apply border-radius: 100% image looks circle. when
.teaser{ border-radius: 100%; }
won't work .teaser img{ border-radius: 100%; }
will. reasons? because border-radius property can't cascade down or because img tag ignore properties parents.
properties inherit default
border-collapse border-spacing caption-side color cursor direction empty-cells font-family font-size font-weight font-style font-variant font letter-spacing list-style-type list-style-position list-style-image list-style line-height orphans page-break-inside quotes text-align text-indent text-transform visibility white-space widows word-spacing
source : impressivewebs.com/
Comments
Post a Comment