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

C# random value from dictionary and tuple -

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

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -