- This topic is empty.
-
AuthorPosts
-
August 14, 2014 at 1:22 pm #179102CrsspParticipant
Can anybody help me out here:
i’ve narrowed my CSS down to this so far:/– Scenic Header background –/
#masthead .inner-wrap div {
background: url(‘/wp-content/uploads/2014/08/header-hills-bg-1200.gif’);
background-repeat:no-repeat;
background-position: top center;
background-size: 100% 100%;
margin: 0;
padding: 0;
}I can’t seem to get rid of the margin’s on the right and left, tried a few things, still no background love.
link: http://173.254.76.115/~stateler/
thanks for suggestions.August 14, 2014 at 1:39 pm #179104Paulie_DMemberThat image is not linked in the CSS that I can see…nor can I see it in the linked sites resources.
Also
#masthead .inner-wrap div
is very generic…there any many divs that will match that selector.August 14, 2014 at 1:41 pm #179105August 14, 2014 at 1:49 pm #179107Paulie_DMemberThe div in question is inside a div which is affected by this
.narrow-978 .inner-wrap { max-width: 978px; }
You main container is wider than that.
Why not make that image a background of the
header
itself?August 14, 2014 at 1:53 pm #179108CrsspParticipantI couldn’t quite decipher the code to get it on the header itself.
The Css syntax for that was escaping me :(
Could not get it to appear at all, was doing something wrong, hence, when you saw it without probably.August 14, 2014 at 2:08 pm #179111CrsspParticipant@Paulie_D it was the syntax of placing header before #masthead.
I had been trying:
#masthead header { as a handle, instead of the correct:
header#mastheadthanks for the suggestion.
In my travels on troubleshooting this one, I found new to me properties for background-size.
Cover and contain… more reading:
https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Scaling_background_images
Think I’m good for now then, leaving this on the back-burner probably till Monday. :)
#3dayWeekendAugust 14, 2014 at 2:36 pm #179115CrsspParticipantNow the next css to pull from the bag of tricks here:
https://css-tricks.com/snippets/css/css-text-shadow/
:)
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.