Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder FWDrew's Avatar
    Join Date
    Apr 2008
    Location
    Missouri
    Posts
    380
    Thanks
    38
    Thanked 45 Times in 43 Posts

    Getting BG color to stretch to content

    Hi all,

    It seems I am having a small issue. I am developing a theme and am having problems with my footer showing its background color when a height is not set.

    see here

    You will se the #footer has a background image that repeats-x. If I dont set a height, then the background image does not show. If I do set a height, then when the content goes past the footer bg image, the bg color (#212121) does not show. Does this make sense?

    Basically, when more content is added to the footer div, the BG color needs to be #212121, which is the bottom of my gradient, and I am having trouble getting it to work. If you add some more content or mess with it in firebug you will see what I mean.

    Thanks much,

    Drew
    Last edited by FWDrew; 11-01-2008 at 08:07 AM.
    Dev-Tips.com || Employee at the Envato Network || My Portfolio

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You need to clear your floats. This has been discussed time and time again. Please search for it in the forums.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • The Following 2 Users Say Thank You to _Aerospace_Eng_ For This Useful Post:

    FWDrew (11-01-2008), oesxyl (11-05-2008)

  • #3
    Regular Coder FWDrew's Avatar
    Join Date
    Apr 2008
    Location
    Missouri
    Posts
    380
    Thanks
    38
    Thanked 45 Times in 43 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    You need to clear your floats. This has been discussed time and time again. Please search for it in the forums.
    I know all about clearing floats, I didnt know this is what was causing the issue, as it was a mistake I missed. How do you search for something when you dont know that its the problem?

    Anyway, problems fixed, thank you for your help

    Drew
    Dev-Tips.com || Employee at the Envato Network || My Portfolio


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •