Forums

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

Home Forums CSS [Solved] Fluid grid system

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #157318
    blaja
    Participant

    I was snooping a bit on bootstrap just to see have they structured code , and I can’t understand why they give a .row class a margin on left and right of -15px? Can anyone explain me that a little ?

    #157321
    TheDoc
    Member

    I don’t know what the rest of the code looks like, but I’d imagine it’s to account for the extra 15px of margin between the grid items so that the items go to the left/right edges of their parent.

    #157324
    blaja
    Participant

    I made a demo http://codepen.io/anon/pen/Exysn

    It make the row container somehow wider because of that negative margin.

    I just trying to realize why they did it in this way with negative margins :)

    #157333
    TheDoc
    Member
    #157359
    blaja
    Participant

    That’s it , now it’s a lot clearer what’s going on.Thanks

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