By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,382 Members | 1,623 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,382 IT Pros & Developers. It's quick & easy.

Automatically resizing images according to resolution/browser size?

P: n/a
Hi All! I hope there's someone that might be able to help me with this...I'm
a designer, not a developer, so i hope this isn't TOO basic.

Basically, I have a topbar that's a simple JPG image that I would like to
put at the top of a web page...is there any way to make that image resize to
fill up the whole browser window regardless of screen resolution?

I suppose basically I'm looking for some sort of autoresize script that
affects images instead of text. Any hints?

Thanks a billion,

Nick
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Try putting this code within <head> </head> in your program.

<style type="text/css">

img {
width: 100%;
height: 100%;
z-index: 1;
}
</style>
"Nick D." <ra*********@hotmail.com> wrote in message
news:vg************@corp.supernews.com...
Hi All! I hope there's someone that might be able to help me with this...I'm a designer, not a developer, so i hope this isn't TOO basic.

Basically, I have a topbar that's a simple JPG image that I would like to
put at the top of a web page...is there any way to make that image resize to fill up the whole browser window regardless of screen resolution?

I suppose basically I'm looking for some sort of autoresize script that
affects images instead of text. Any hints?

Thanks a billion,

Nick

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.