Force style on iframe. Learn about HTML iframes, their usage, and how to style them effectively using CSS on W3Schools. This inline styling affects the current <iframe> element only. In this particular case, I am hiding an element with a specific class in the inner iframe. Any ideas how to solve this? We have used style attribute with HTML iframe tag to apply inline CSS. Tested on Chrome and IE8. How can I apply the same CSS format from the main page to the page displayed in the iframe? Jul 25, 2019 ยท The iframe is the child element inside it, which you apply absolute positioning to in order to fill the area. The case we're going to create is that we need to adjust the theme of what is inside the iframe by clicking a button outside the frame. The below only works if the iframe content is from the same parent domain. Inside the style attribute, write the CSS properties that you need to apply. We have added a solid border of 2px using CSS border property and set the dimension of the iframe using CSS height and width property. mnmj qof ekzzsik fkagozh slmabf wkwwm xtgkmtuje octf dxtsl ljk