html - css inheritance in iframes -


i'm aware iframe can't inherit css styles of "main" webpage, if confused. have main page background plain black, white text. iframe doesn't have background colour specified , yet black, same main page. however, other css properties in main page have defined separately iframe if want them used. why this?

if not set background of html document (by setting on html element or body element), browser default used, , can expected initial value, transparent.

this means page embedded in page iframe element, can expect background of embedding page shine through.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -