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

Home Forums CSS Problem with background of the div

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #260471

    Hello, im a begginer and I really need some help with this:

    This is how my website look like so far, the problem is that i don’t know how to extend the white background of the div to the left of the screen as shown in here:

    the whole “row” consist of 3 divs (one is kind of wrapper with max-width of 960px, one is the white paragraph and the last one is the dark blue paragraph)

    Please, if you could give me an idea what to change I would be forever thankful. Thanks!


    Better would be if we could look at a live site or demo, but it is probably the parent wrapper with the max-width: 960px that keeps the white paragraph from expanding beyond that. Which is probably why it’s there to begin with. When wanting to change this: please make a demo, and we can show you how to do this.


    If it’s just a background color you need then a positioned pseudo-element can fix that.

    I wrote a whole answer on it on Stack Overflow –


    Paulie_D, thats exacty it! I do not understand the code completely but I will figure it out! Thanks a lot!

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