View Full Version : question about a website problem
December 29th, 2004, 10:36 PM
Ok so I'm trying to get my website up and running and my background image isnt filling up the whole browser. I get about 2" of black nothingness around the bottom and right side of the browser. Its being constructed in Dreamweaver by my Sister and She hasnt figured out how to get it to look correctly yet. Anyone know how to remedy this?
I dont want to tile the background because it just is not a tileable image. Another option would be to stretch the image to the browsers resolution size but that could end up scrunching the image. So I'm looking to avoid this.
Thanks in advance to anyone with suggestions
December 29th, 2004, 10:55 PM
hmm... as far as i can tell... you sort of answered your own question... sort of...
since everyone has their resolution set differently, and there are many diferent browsers out there, how your image is being displayed (size) and how much space is viewable within the browser window varies greatly....
so yes... you COULD scale the image... but if it messes up the pic i'm sure you don't want to do that...
hope these help... if not... sorry i wasted your time :wink:
December 29th, 2004, 11:40 PM
You could use css style sheet and there is a command where you set the background=norepeat.
December 30th, 2004, 04:18 AM
You could use css style sheet and there is a command where you set the background=norepeat.That doesn't help...it will just, as it says, make sure that the background doesn't repeat itself...i.e. the image will only be displayed once...in its original size.
What I don't understand is why you want to do this...big backgrounds are usually annoying. Use a good color instead ;)
Not that we don't use a big background here...you can check how we did by looking at the source for either the forum or main page.
December 30th, 2004, 02:18 PM
Well the main thing is my titlepage. I have a image/collage against a rusty textured wall. I would like the whole thing combined to be centered and fill up the whole browser. On the content pages it is just the rusty background with a few mechanical pieces, this could easily be stretched but not really tiled becuase of the asymmetrical aspects of the background. boy this is quite the pickle. So i'm guessing now maybe I should have the titlepage image(the collage) seperate and set to absolute positioning in the center? and the the background would be seperate and set to stretch to conform to the browser?
December 30th, 2004, 03:35 PM
I'll write up something quick to use as a template, no guarantees it'll work (I'd test but got a dentist appointment in like 15 minutes).
if (screen.width == 1024 && screen.height == 768)
background = "1024bg"
if (screen.width == 800 && screen.height == 600)
background = "1024bg"
document.print(background + ".css");
doh, I gotta go (Stupid travel time) but that might give you some ideas:
find resolution, make background images with different sizes, display background image based on resolution!
December 30th, 2004, 04:02 PM
...and it will not work very good unless people run their browsers in fullscreen mode. I have no idea what my client's width and height are, but they sure aren't normal in any way. But of course, if it's ok that you cannot see the entire background, the above solution will work pretty fine.
January 3rd, 2005, 05:02 AM
Is it on the web right now? Perhaps if we get a good view of what you've done so far it will give everyone a better idea of what you want to accomplish (and better suggestions for how to achieve it). :)
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.