Fill the browser window.

I want to insert an image into a frame so that when the browser opens, the image fills the frame (ie whole bottom of the screen) regardless of what browser is being used. I dont want to overfill/ underfill the screen (ie I dont want any sideways scrolling to be necessary. Whats the answer oh experts.
Seb
sebastizAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

EsopoCommented:
>>Whats the answer oh experts.<<
lol

You can do some javascripting to resize the graphic according to the window's size, but I would personally go with a 100% width Flash anim.

BTW: Did I welcome you already? Welcome to EE!
0
triserosCommented:
Insert a table and set the width and height to 100% then add your image and set the wdth to 100% (the height should adjust in proportion to this so that you don't get distortion)
0
Havin_itCommented:
Hi sebastiz,

Not sure how you're positioning your iframe to stay at the bottom, but here's how to make the image fill it:

<iframe scrolling="no" id="foo" name="foo" height="400" width="100%" frameborder="0" hspace="0"
vspace="0" marginheight="0" marginwidth="0" src="img.htm"></iframe>

In img.htm use this:

<body bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0">
<script type="text/javascript">
document.write('<img src="images/yourimage.png" height="'+top.document.getElementById('foo').height+'" width="100%">');
</script>
</body>

If your iframe is being dynamically positioned this won't work, but you didn't mention such so I'm assuming it has fixed height.

Hope this helps!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Dreamweaver

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.