View Full Version : css positioning and page size...


xninax
06-12-2004, 01:23 PM
Hello :)
I hope you can help me out with this... I am trying to do a simple website with css positioning. I've made a html document that contains my menu and an additional image and an iframe. Then I've positioned it (using relative positioning) so that the iframe is moved up and right to fit in under the menu.
That part works and it looks as it should.
My problem now is that my page has a lot of empty space under the iframe. The browser shows the iframe in the correct moved up position, but it still inserts as much empty space as if I didn't move it at all? How do I get rid of this empty space? I know I can remove the scrolling option, but I want people with small screen resolutions to be able to view my site too...

This is the html:
<body>
<div id="menu"><img src="layout/menu.gif" width="726" height="267"></div>
<div id="who"><img src="layout/who.gif"></div>
<div id="content"><iframe src="content.htm" name="content" width="560" height="320" frameborder="0">If you see this text, iframes are not enabled on your browser, please update to the newest version!</iframe></div>
</body>

kittycat
06-12-2004, 11:29 PM
Could you provide a link to your site or a test page? It might be easier to see what's wrong if we can see how it looks :)

xninax
06-13-2004, 08:48 AM
ok, sure:
test page (http://home20.inet.tele.dk/desdemona/newindex.htm)

the problem is all the empty space under the iframe when you scroll down.
Thanks for helping out :)

kittycat
06-13-2004, 03:19 PM
If you disabled the scrollbars inside the iframe you could probably get away with it, just change the top margin so that it's right up against the top of the main page and people with an 800x600 resolution should be able to see it all, they may have to scroll a bit depending on how they have their toolbars set up. I wouldn't worry about any resolution lower than that, very very few people use it any more.

xninax
06-13-2004, 07:44 PM
thanks for the advice, I'll stick with that solution then :)