Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Background color spread in div boxes

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37163
    tjgriffiths1
    Participant

    Hey Guys,

    Had a little look around, and couldn’t find much in the forum, but i’m sure it must have been asked before! The question is;

    When applying a background-color property to a div box, why does the background color only apply to the actual content? Is it possible to stretch it to the whole div box no matter what content is in there?

    Thanks in advance,

    #99153
    Paulie_D
    Member

    The background-color property WILL apply to the div and not just the content. See–>http://jsfiddle.net/Paulie_D/xsP4r/

    If you are having an issue, you’ll have to provide us with a some code or a link.

    #99306
    tjgriffiths1
    Participant

    Thanks Paulie,

    I think it seems to be working at the moment. I will get back to you if anything goes wrong with some code!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.