Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

<Iframe> my existential bane

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

Aryden

Established Member
Impact
0
i like using iframes in my wesites, problem i have issues making them resizeable using % for heights, width works but it automatically defaults to 100% of the height of the page. i tried css, inline styles and many other things to fix this, but nothing works. you can view one of the pages as an example at www.housedok.com/main.htm

anyone know how to make the height variable, cause the only way i can make a height stick is by using a static value in px?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
the height of the page is dependant on your doctype

100% high pages is not a standard or anything like that but there are ways around it

best thing to do is add this to your head

<style>
body,html
{
height:100%;
}
</style>

that will use css to set the browser window to 100% high then you should be able to set your iframe to 90% high

id recomend using divs instead of iframs much more user freindly
 
0
Close
ok i can do that, but if i wanted to use a div to display info like an iframe, how do i target it i mean do i <div src="http://www.somefile.com"> ?
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back