Forums

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
    Posts
  • #260471
    damienrenette
    Participant

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

    https://imgur.com/BOEezzL

    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:

    https://imgur.com/Kuv8A59

    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!

    #260474
    Atelierbram
    Participant

    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.

    #260481
    Paulie_D
    Member

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

    https://codepen.io/Paulie-D/pen/GMrprv

    I wrote a whole answer on it on Stack Overflow – https://stackoverflow.com/questions/28565976/css-how-to-overflow-from-div-to-full-width-of-screen

    #260510
    damienrenette
    Participant

    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.