- This topic is empty.
August 15, 2011 at 12:20 pm #33919
I want to put a footer in a page wrap but it doesn’t appear at all
i write the markup
and the CSS
min-height: ..... ;
background: url(images/footer.jpg) no-repeat;
and it doesn’t appear…. by the way this is a part of the tutorial made by chris here is the link of the tutorial The tutorialAugust 15, 2011 at 3:29 pm #85031wolfcry911Participant
care to give us a little more information?August 15, 2011 at 5:08 pm #85036zackwMember
im guessing your just linking to your image incorrectly… try
background: url(../images/footer.jpg) no-repeat;
make sure u set a height as wellAugust 15, 2011 at 7:40 pm #85040
Thanks for replies… i get it
The problem was i didn’t give a width to the footerAugust 15, 2011 at 7:55 pm #85043joshuanhibbertMember
@aemara47 That is very strange. As a div is a block level element it automatically takes up all of the available width. Setting the height should have been enough.August 15, 2011 at 10:29 pm #85051serquhartMember
@aemara47 – i realize this is solved, but if you’re still hoping to stretch the div across the screen check the rest of your css (firebug is great for this). For instance, search your css and make sure the div in question isn’t floating left (which would cause this behavior). I mentioned firebug a) because it rocks, and b) because it will show you precisely what css properties are set for any element on your page. Unless you’re a veteran (forgive me if you are!) you’d be surprised what’s effecting what in your styles.
ShawnAugust 16, 2011 at 11:05 am #85069
Thanks @sl1dr and shawn for helping :D
- The forum ‘CSS’ is closed to new topics and replies.