Forums

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

Home Forums CSS Make the main window scroll horizontally and…

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

    I have the following css in a website. What im trying to do is make the secondDiv grow as much as it like and make the main window scroll horizontally, to push the window to the right and not start second div on a new line. SecondDiv should start to the left of first div and make the window scroll horizontally when x repeatingDiv fills the secondDiv.

    Does anyone have any idea of how to accomplish this?

    Help will be greatly appreciated!

    <div class="firstDiv"></div>
    
    <div class="secondDiv">
    
    <div class="repeatingDiv"></div>
    <div class="repeatingDiv"></div>
    <div class="repeatingDiv"></div>
    <div class="repeatingDiv"></div>
    
    </div>
    
    #152299
    lukefrake
    Participant

    Hey @jfdsaljfslajfdsjkl

    I think I have a solution how does this look?

    http://codepen.io/lukefrake/pen/BdCJn

    Any questions please shout

    EDITED – to add horizontal scroll :)

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