Xplorer4x4 Posted October 28, 2011 Share Posted October 28, 2011 I think I am about to loose my mind. I have googled and looked at tons of examples of using i-frames side by side, but nothing works. The layout is pretty simple: http://img32.imageshack.us/img32/8662/diagram2q.jpg Here is the source code of the page. <? if (!check_perms('users_mod')){ error(403); } show_header('Staff Tools', 'toolbox'); ?> <head> <style type="text/css"> #adminmenu { margin-left:0% width: 200px; float: left; } #admincontent { float: right; margin-left: 15%; } <!--#menu iframe, #content iframe { width: 100%;--> } </style> </head/> <div class="adminmenu"> <iframe width="90" style="display:inline" src="/index2.php"></iframe> </div> <div class="admincontent"> <iframe width="500" style="display:inline" src="/info.php"></iframe> </div> <? ?> Here is the result: Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted October 28, 2011 Author Share Posted October 28, 2011 Sorry to double post but can no longer edit my post(really? After only an hour? :-\) <!--#menu iframe, #content iframe { width: 100%;--> Should be: /*#menu iframe, #content iframe { width: 100%;*/ Quote Link to comment Share on other sites More sharing options...
Gighalen Posted November 3, 2011 Share Posted November 3, 2011 Have you tried setting a fixed width on the right div? Div's have a width of 100% unless otherwise specified. Quote Link to comment 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.