Jump to content

Expanding images to fit the page?


Guardian-Mage

Recommended Posts

I have an image that is 1200x1000 for people with a 1280x1024 browser. My problem is, it is still to high when you factor in the status bar, task bar, tabs, and anything else a browser or user might have. I want to use CSS if at all possible, or if not, I can use javascript to resize the picture to take up the ENTIRE USABLE page space. How might I do this?

Link to comment
https://forums.phpfreaks.com/topic/90961-expanding-images-to-fit-the-page/
Share on other sites

 

You can repeat the image with css; if you want like a background image or you can do as you were saying and use JavaScript to resize the image based on the screen resolute. You could also resize the image server side with the PHP GD Library. It just really depends on which way you want to go.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.