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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -