View Single Post
Old 05-25-2014, 09:46 AM  
2MuchMark
Too lazy to set a custom title
 
2MuchMark's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 50,377
Quote:
Originally Posted by Vendzilla View Post
Going to need more info on your code to fix that. Going to depend on your CSS probably.
You can always make a <div> container like

Code:
#div-wrap { position: relative; width: auto; height:300px; margin: 10px auto; padding: 10px; background: transparent;
}
in the header or css style sheet

then put in
Code:
<div id="div-wrap">...,[/div]
Thanks Vendy (really!)

But the height can't be a fixed amount, like 300px. It has to be a percentage of the total height of the page.

For example, if you take your browser window now and reduce the horizontal size, this GFY page will change to always fit within the browser. But if you do this with an iframe, the horizontal resizing works but not the vertical resizing.


Quote:
Originally Posted by RummyBoy View Post
How is HTML5 better than the other HTML?
What I am trying to do is make a page that displays a frame on a mobile device. HTML5 still supports iframes, but has limited or no support for regular frames. If I want the rest of the page to display correctly on mobile I have to use HTML5.
2MuchMark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote