Background ReSize Code?

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

DammitJanet

Thread Starter
Joined
Apr 14, 2006
Messages
98
I need the code (CSS or HTML) that makes a background image re-size automatically to fit a given resolution. For example, I have a background picture with two triangles on my blog. For me, the blog slides right up between the triangles because my resolution is 1680x1050, like the picture. However, everyone using a resolution smaller than that finds it hard to read, because it won't re-size for them. Can someone PLEASE tell me this code?! I'm dying over here!
 
Joined
Jan 25, 2007
Messages
75
Have you tried using percentages to define height and width of the image? That is how most sites do resizing, this will actually resize based on the browser size/resolution and not the resolution of the computer so even on your computer, the image will appear smaller and more centered as I would imagine your active browser window viewing space is slightly smaller than the full 1680x1050 resolution do to start menu, title bar, address bar, scroll bar, etc...

I believe the HTML code would look something like this (my HTML is rusty so i could be wrong)

<img src="filename.extension" height="100%" width="100%" />

Of course, keep in mind your image at 1680x1050 is in a widescreen resolution and will looked squished horizontally on most peoples monitors since most dont own a wide screen 16:10/16:9 monitor but the more standard 4:3 monitors with 800x600 and 1024x768 resolution or 5:4 montior at 1280x1024.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top