Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 26th, 2004, 03:06 PM
n3xr0 n3xr0 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 7 n3xr0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Scaleable Background

Hi All!!

I'm trying to find a way to set a background image to scale to fill the full size of the page at all resolutions.

I found one solution at http://www.webreference.com/dhtml/diner/bgresize/
and have implemented it on http://www.socallandcruisers.com/main.htm

It works great with one problem. It seems to only work well in IE6. Is there another solution that anybody is aware of which will work in IE5, and hopefully Netscape?

Reply With Quote
  #2  
Old April 27th, 2004, 12:19 AM
webguy's Avatar
webguy webguy is offline
Power User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Canada
Posts: 180 webguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 13 sec
Reputation Power: 5
Send a message via AIM to webguy Send a message via Yahoo to webguy
well, I've heard of different ways, but I've never used any. The problem with the approach of having one image resize for different resolutions is that the image will either be too small and at higher resolutions will look bad(pixelated). OR..
The image in order to compensate for the above problem will be huge. Thus taking a long time to download and effectively losing your audience.

In anycase, a suggestion is to use a div and set it's width to 100% and height to 100%. Also make this div have a z-index of 0, everything else z-index greater than 0...ie 4.
Now add your image into that div and set the image width and height to 100%. Now the div will grow and shrink, and so will the image. I tested it on IE6 and mozilla and it worked as expected. Sorry, forgot about NN and I don't have Ie5.x. But you can test it

Alternatively, you could probably even just use the image withuot a div. Just give the image a z-index of 0 and everything else higher.

p.s
You will also need to set the html and body elements widths and heights to 100%.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Scaleable Background


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway