Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Background Pictures Changing Size With Different Resolutions

Status
Not open for further replies.

Seafury888

Programmer
Jun 3, 2003
11
CA
Heres the code:
Code:
<body background=&quot;LOGO_porky1.jpg&quot; height = &quot;100%&quot; width = &quot;100%&quot;>

I added in the height and the width attributes to see if they helped and they didn't. The picture I'm using will be fullscreen at 800x600 res, but it is smaller and repeats as a tile at 1400x1050. I would like the picture to stay fullscreen at any resolution and not have to become a tile. Any suggestions or is this unresolvable?

Thanks
Ian
 
Dont do that at all?

Use a framed site.

Oh and i suggest that you dont do it at all.
 
You can't have a width and height attribute in the body tag. To get what you want you have to do the following:

1. set margins to 0 and overflow: hidden in the body style sheet

<style>
body { MARGIN: 0; OVERFLOW: hidden; }
</style>

2. define the pic with height and width 100% immediately after the body tag.

It will look like a background picture now.

Hope that is what you are searching for.
mab
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top