Iframe styling

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Iframe styling

Post by Tata » Thu Mar 31, 2016 6:58 am

I decided to use an simple external PHP gallery placed in an iframe. But making the iframe responsible doesn't work whatever recommended code I use. The iframe gets always its fixed dimensions from somewhere. If I use

Code: Select all

<iframe style="width: 100% !important; height: 400px;" src="./gallery/index.php" frameborder=""0" width="320" height="240"></iframe> 
the result is always only an iframe with the width of 320px. Is it achievable with any plain CSS trick?
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

lck
Posts: 2963
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Iframe styling

Post by lck » Fri Apr 01, 2016 9:27 am

„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

Post Reply