liamloveslearning Posted February 2, 2010 Share Posted February 2, 2010 Hi everyone, im just wondering is it possible to set 2 different iframe styles? say I have in my stylesheet iframe { width:10px; height:20px; } .iframe2 { width:20px; height:10px; } and then in my document used <iframe width="200" height="220" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="google.com"</iframe> <iframe class="iframe2" src="google.com"</iframe> Ive tried it and its not working, should i just use inline styles and define them that way ? Quote Link to comment https://forums.phpfreaks.com/topic/190638-multiple-iframe-styles/ Share on other sites More sharing options...
liamloveslearning Posted February 2, 2010 Author Share Posted February 2, 2010 nevermind, inline styles have sorted it, trial and error Quote Link to comment https://forums.phpfreaks.com/topic/190638-multiple-iframe-styles/#findComment-1005402 Share on other sites More sharing options...
gizmola Posted February 2, 2010 Share Posted February 2, 2010 An iframe is for all intents and purposes an embedded browser window. As such it has everything that a normal browser page would have, so you want to treat it the same way you'd treat any other page. Quote Link to comment https://forums.phpfreaks.com/topic/190638-multiple-iframe-styles/#findComment-1005691 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.