Discuss Background Spanning in the CSS Help forum on Dev Shed. Background Spanning Cascading Style Sheets (CSS) forum discussing all levels of CSS, including CSS1, CSS2 and CSS Positioning. CSS provides a robust way of applying standardized design concepts to your web pages.
Posts: 10
Time spent in forums: 1 h 34 m 2 sec
Reputation Power: 0
Background Spanning
I have a background on the website itself, and also a background on a div. I can't get the background on the div to span the entire page. It seemingly has a 3-4px pad on both sides, and for the life of me, I can't figure out what is causing it. I know it's going to be something stupidly simple, but my eyes are just crossed.
Posts: 416
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
Quote:
Originally Posted by JakeStarr
Man I knew it was something dead simple. SMH, I feel ashamed I missed that one. Many thanks aeternus.
No problem, You may also want to have a look in css resets. They aim at minimising browser differences. Pretty much the god father of the reset.css is Eric Meyer
Experiment with it. It might be overkill. Although it can really help
Posts: 36
Time spent in forums: 15 h 30 m 48 sec
Reputation Power: 66
you may also want to try using a gradient for your background on your html letting it fall back to a solid color for older browsers. You would have to pull out the part of the image with the figure over the fire and make it the background for a child element. it should probably be the background for your .center div.
below is a generator to create the gradient:
http://www.colorzilla.com/gradient-editor/
this method will compensate for larger screens. My display is wider than 1600px so your image gets cut off on the right hand side.
Posts: 36
Time spent in forums: 15 h 30 m 48 sec
Reputation Power: 66
Not sure what you mean. If you mean separating the image, we need to know where it is coming from etc... did you create the image in photoshop or did you receive it like it is now.
Posts: 10
Time spent in forums: 1 h 34 m 2 sec
Reputation Power: 0
When I tried the image as the background of one of the div elements versus the background of the body, it wouldn't show up. The gradient did, but no image. I'll have some time to work on it this weekend to try any suggestions anyone may have.
Posts: 10
Time spent in forums: 1 h 34 m 2 sec
Reputation Power: 0
Alright I have the gradient setup in the body CSS, and the background image within the wrap CSS. Just the gradient shows up. The image is non-existent. Where have I made this oopsie?