Log in

View Full Version : Override iframe CSS?



mvogel
03-25-2008, 01:57 AM
I have an iframe on my website to a transaction service bureau. I know the exact format of the various pages served by the bureau, but I don't have the ability to change styles on the service bureau pages itself. I want to override one style in the iframe (I know the class of that style). Is there anyway for me to load a CSS which gets added to the iframe? Or perhaps there's another way to change the style for the class "tinytext" in the iframe? I merely want to change the font size to make it larger.

boogyman
03-25-2008, 12:50 PM
I do not believe you can since the iframe isn't actually on your page, it is referencing another. If it was possible it would be through



<style type="text/css">
iframe#identity {
font-size: 110%;
}
</style>

<iframe id="identity" src="/path"></iframe>

mvogel
03-25-2008, 12:55 PM
Thanks for the code. The actual situation is that there is one class selector in the iframe's CSS called "tinytext". I don't want to change all the font sizes on the iframe page - only the size of the text which has the class selector of tinytext.

Any ideas?