Forums

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

Home Forums CSS Div problem

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #40586
    albertdt6
    Participant

    Hi,
    I’ve created two divs, one on the top left side and the other under this (both with fixed dimensions).

    My problem is: I want a new div on the right side that its length ends with browser window’s width. How I can create this new div?

    I leave you an image for understanding this case:
    Link

    Thank you!

    #113232
    chrisburton
    Participant

    @albertdt6 Like this? http://codepen.io/christopherburton/full/kEyKo

    I’m sure someone else can improve this.

    #113239
    Paulie_D
    Member

    Nope…that looks good to me.

    #113281
    albertdt6
    Participant

    @ChristopherBurton Thank you for your quickly work but I’ve followed your instructions in my web page and the main div doesn’t start when sidebar’s div finnish. You can look my web page here : Link

    My sidebar’s div is in “styleInici.css” while main’s div (which is called “sliderFrame”) is in “js-image-slider.css”.

    Note: I’ve added some background color.

    Thank you!

    #113285
    wolfcry911
    Participant

    add margin-left: 400px to #sliderFrame

    #113286
    albertdt6
    Participant

    Well I hadn’t considered this quick fix but it worked, thank you very much!

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