views:

40

answers:

2

how to set iframe height to 100% with javascript Example : http://mkb.ma/5f

+1  A: 

Here is the CSS for the iframe that page:

#mkbnavbar iframe#srcpage {
  height:90%;
  margin:0;
  padding:0;
  width:100%;
  z-index:10;
}

And remaining 10% is given to bar at the top.

Sarfraz
+1  A: 

He is actually using CSS to do this on this page:

#mkbnavbar iframe#srcpage {
height: 90%;
width:100%;
z-index: 10;
margin: 0; padding: 0;
  -webkit-box-sizing: border-box;

}
Chris
it doesn't work !
Anas Fares