CSS height: 100%?

asder

New Member
I'm developing a website to a school project and I'm confused with the layout. I want to make the iframes size dependent on the browsers size.
Code:
<html>
<head>
<style type="text/css">
body{
	margin: 0px;
	padding: 0px;
}

#logo{
	width: 800px;
	height: 200px;
	background: green;
	border: 0;
}

#iframe{
	width: 800px;
	height: 100%;
	background: blue;
	border: 0;
}
</style>
</head>
<body>
<div id="logo"></div>
<iframe id="iframe" name="iframe"></iframe>
</body>
</html>

Because the iframe is 100% and i move it down 200px the iframe get the height of the window in the browser. But since i move it down 200px the iframe gets to big. So what i want to do is to set the iframes hight to 100%-200px. I hope you understand :rolleyes: Someone know a way to do this? Or do you know a better way?
 

kiko_friendly

New Member
It would be helpful to see the whole page...Personally, I can't help you.

I don't use iframes, because they are godawful.

But I guess you could set the % to like 90% or something...it might work out?

That's what I'd do, anyway. Just try out different percentages, and change your screen resolution to see what it'd look like in other resolutions.

Sorry I can't help more.
 

sushil

New Member
It would be helpful to see the whole page...Personally, I can't help you.

I don't use iframes, because they are godawful.

But I guess you could set the % to like 90% or something...it might work out?

That's what I'd do, anyway. Just try out different percentages, and change your screen resolution to see what it'd look like in other resolutions.

Sorry I can't help more.

Hey why you saying sorry, that's enough information.anyway if you want to be say "sorry" then no problem..
 
Top