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
Post a Comment