Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

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 Codewalkers Forums Sponsor:
  #1  
Old January 21st, 2004, 09:08 PM
foxfire foxfire is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Nashville, TN USA
Posts: 70 foxfire User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to foxfire
resizing a background image

Is there a way to resize the backgound image of a page to fit the size of the browser window and resolution? I am running up against different screens with different resolutions, on the high resolution screens the background images are not long enough, and repeating the image will not look right.

Reply With Quote
  #2  
Old January 21st, 2004, 09:13 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: resizing a background image

the easiest thing to do would be to set the size of the background image as a percentage so it stretches with the resolution.. but then of course you get distortion.

only other thing that comes to mind would be to detect the browser size with javascript and use different images but that'd be a pain in the arse

Reply With Quote
  #3  
Old January 21st, 2004, 09:27 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: resizing a background image

whoops i should be more specific.. um, if you set an image to stretch without repeating itself, then the content would have to be placed on top of it with some sort of div layer..

probably more trouble than it's worth.

Reply With Quote
  #4  
Old January 21st, 2004, 11:31 PM
foxfire foxfire is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Nashville, TN USA
Posts: 70 foxfire User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to foxfire
RE: resizing a background image

ok so ... the images fit a 1280x1024 screen. However anything larger and you have a gap at the bottom. Now to the illusive point, will stretching the image distort it too horribly?

Reply With Quote
  #5  
Old January 21st, 2004, 11:36 PM
foxfire foxfire is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Nashville, TN USA
Posts: 70 foxfire User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to foxfire
RE: resizing a background image

About your second message ... I understand the part about setting the image not to repeat but to stretch but I am lost about the remainder : sorry.

Reply With Quote
  #6  
Old January 21st, 2004, 11:56 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: resizing a background image

this site is a good resource for css and dhtml to explain what i'm talking about with layers, particularly chapters 8 and 16 i think.. you can learn by example there.

how badly the image would distort, it would really depend on the image.. if it's a simple image, like vector graphics are then it wouldn't be bad at all.

Reply With Quote
  #7  
Old January 22nd, 2004, 12:28 AM
foxfire foxfire is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Nashville, TN USA
Posts: 70 foxfire User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to foxfire
RE: resizing a background image

Thank you, I understand now.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > resizing a background image


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT