Webmaster Forum

Go Back   Webmaster Forum > Web Development > Web Design Lobby

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 11-08-2004, 02:06 PM
seonewbee's Avatar
Senior Member
Latest Blog:
None

 
Join Date: 05-12-04
Posts: 302
iTrader: 0 / 0%
How to make BckGrn image resize to browser window?

How do I make a background image resize automatically to the resolution of the browser window? ! have a 1600x1200 background image I want to fit the browser window no matter what the user's resoultion is. Any ideas.

Thanks in advance for all your assistance.
 
Reply With Quote
  #2 (permalink)  
Old 11-08-2004, 02:17 PM
Spiral's Avatar
Senior Member
Latest Blog:
None

 
Join Date: 07-06-04
Location: Detroit, MI
Posts: 276
iTrader: 0 / 0%
set it as the background of a div with height and width set to 100%.

or a table, I do the same thing on my portfolio site, it scales down to 800x600 even though the image is 1400x1200
 
Reply With Quote
  #3 (permalink)  
Old 11-08-2004, 08:11 PM
seonewbee's Avatar
Senior Member
Latest Blog:
None

 
Join Date: 05-12-04
Posts: 302
iTrader: 0 / 0%
Thanks Spiral.

This is what I ended up doing. Made an image 800x600 and then did the following.

Code:
<body bgcolor="#FF0000" style="background-image: url('bckgrn0c.jpg'); background-attachment: fixed; background-repeat: no-repeat; background-position: top center;">
 
Reply With Quote
  #4 (permalink)  
Old 11-09-2004, 12:12 AM
Spiral's Avatar
Senior Member
Latest Blog:
None

 
Join Date: 07-06-04
Location: Detroit, MI
Posts: 276
iTrader: 0 / 0%
Cool, looks good
 
Reply With Quote
  #5 (permalink)  
Old 07-19-2005, 10:47 AM
Junior Member
 
Join Date: 07-19-05
Posts: 1
iTrader: 0 / 0%
Help Please

In regards to the question about having a set image and wanting a code to have it automatically resize to fit a browser window no matter what the screen resolution is...I tried this code..and it works a lot better than I had before...but I still need help...Here is the link.
Thank you very much.
Sincerely,
~Karen
http://www.geocities.com/mr_games_kg/sample.html
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resize Image Please Centertainment Graphic Design Forum 8 08-31-2006 08:17 AM
Browser windows resize on load mircea Web Design Lobby 1 11-20-2004 07:52 PM
PHP Image Resize Issue ATLien Coding Forum 2 06-03-2004 09:01 PM
Code To Automatically Close Browser Window DJ-Craig Coding Forum 1 02-15-2004 07:13 PM
Help, How do you get an image to resize to your specific scr Rocknrob Web Design Lobby 20 12-17-2003 09:51 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 05:16 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2014 Escalate Media




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.