CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS 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 September 30th, 2012, 02:28 PM
JakeStarr JakeStarr is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 10 JakeStarr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

I have it uploaded here

Reply With Quote
  #2  
Old September 30th, 2012, 02:53 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
Add above all your stylesheets in the future the following. That should do the trick

Code:
body,html{margin:0;padding:0;}
Comments on this post
JakeStarr agrees: Much appreciated on the help!
__________________
PHP Tutorial

Reply With Quote
  #3  
Old September 30th, 2012, 02:56 PM
JakeStarr JakeStarr is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 10 JakeStarr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 34 m 2 sec
Reputation Power: 0
Man I knew it was something dead simple. SMH, I feel ashamed I missed that one. Many thanks aeternus.

Reply With Quote
  #4  
Old September 30th, 2012, 03:20 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
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

Reply With Quote
  #5  
Old October 1st, 2012, 01:01 PM
Paul-Ninja Paul-Ninja is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Location: Troy, NY
Posts: 36 Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
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.

*bonus: your site will probably load faster too.
Comments on this post
Kravvitz agrees!

Reply With Quote
  #6  
Old October 4th, 2012, 08:32 PM
JakeStarr JakeStarr is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 10 JakeStarr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 34 m 2 sec
Reputation Power: 0
I like the idea of the gradient, with the background being inside the div, but my problem is getting the background to show up.

Reply With Quote
  #7  
Old October 5th, 2012, 02:02 PM
Paul-Ninja Paul-Ninja is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Location: Troy, NY
Posts: 36 Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
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.

Reply With Quote
  #8  
Old October 5th, 2012, 06:09 PM
JakeStarr JakeStarr is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 10 JakeStarr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  #9  
Old October 7th, 2012, 02:45 PM
JakeStarr JakeStarr is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 10 JakeStarr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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?

Reply With Quote
  #10  
Old October 8th, 2012, 09:09 AM
Paul-Ninja Paul-Ninja is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Location: Troy, NY
Posts: 36 Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)Paul-Ninja User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 15 h 30 m 48 sec
Reputation Power: 66
You have two background images being declared on the same element. This image is being declared inline:

Code:
<div id="wrap" style="background:url(images/linkbarbg.png) repeat-x" >


And this image you have declared in your css in file:

Code:
background: top center url(images/background2.jpg) no-repeat;


Perhaps try declare your background-image on the "main" div.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Background Spanning

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap