Notifications
Clear all

iframe background color


Posts: 8
Topic starter
(@wingfield)
Active Member
Joined: 6 days ago

hello,

how do I add background color?  I've tried the below, but it does not work.

 

thank you

[iframe src=" removed link " width="100%" height="600" iframe_content_styles="background-color: #f8f8fff"]
3 Replies
Posts: 8
Topic starter
(@wingfield)
Active Member
Joined: 6 days ago

I believe that last "f" should be a ;

in any case, still does not work

Reply
TinyWebGallery
Posts: 523
Admin
(@admin)
Administrator
Joined: 13 years ago

You should use advanced_iframe as shortcode. 

And here you see a demo how to set styles: http://www.tinywebgallery.com/blog/advanced-iframe/demo-advanced-iframe-2-0

 

[ advanced_iframe id="myiframe" content_id="#myiframe" content_styles="background-color: #f8f8ff" ]

 

does the the background of the iframe itself

iframe_content_styles

works inside the iframe if you are on the same domain. If you like this you need to define also where the color should be applied to: iframe_content_id="body" iframe_content_styles="background-color: #f8f8ff;"

This then sets the background color of the body inside the iframe. 

Please also check the documentation in the administration for more details. 

Best regards,

Michael

 

Reply
Posts: 8
Topic starter
(@wingfield)
Active Member
Joined: 6 days ago

thank you very much Michael.  case closed!

Reply