Jump to content

Need To Prevent Scrolling In Iframe


Ecoli
 Share

Recommended Posts

ok, so i have an iframe in the center of my design where content for the subpages show up when the user clicks on targeted links.

 

on the first page, i need it to look like there is no frame there, so there is a graphic that is exactly the size of the iframe that fits the layout of the rest of the site.

 

basically i need to make sure no scrollbars show up on this page, but i can't disable them entirely on the iframe because some of the content pages need vertical scrolling.

 

i have set margins/etc on the page with the perfectly sized image so that in Safari and IE on the Mac (at least), there are no scrollbars. IE on Windows, however, puts scrollbars there. I want it to _not_ do that. :P

 

here's my disheveled site in whatever current form it's in...

 

www.thebandweather.com/index2.html

 

and here's the css for the page inside the iframe with the graphic (which is the same size as the iframe):

>.mainimg {
position: absolute;
top: 0px;
left: 0px;
border: none;
margin: 0;
}

body {
margin: 0;
}

and in the body:

<body bgcolor="white" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<img src="img/req/homegraphic.jpg" width="508" height="264" style="mainimg">

 

Edit by TCH-Raul: There's an Edit button above your posts, you can use it to correct mistakes instead of posting a new message to the thread. I merged the two pieces of code for you :D

Edited by TCH-Raul
Link to comment
Share on other sites

Hmm, strange.

It looks like an IE flow.

Long shot but maybe you could try adding px to the number.

I think I had some experience with IE that it needed that but I am not sure.

 

But strange it is :-)

 

Good luck and

 

Grtx,

Richard

Link to comment
Share on other sites

There's no need to double post your questions.

 

Please, post only one message per question and in the appropriate forum.

 

I'm moving the other thread into the appropriate forum and closing this one, because the other has more replies.

Edited by TCH-Raul
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...