Forums

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

Home Forums CSS Image Gallery in Grid

  • This topic is empty.
Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #143695
    Kitty Giraudel
    Participant

    You need a grid system then; you are too picky to have something as simple as what @Paulie_D and I showed you.

    **Edit**: my above assertion is true if you need something responsive of course.
    **Edit 2**: you could have something quite simply but would need to have specific classes in your markup.

    #143696
    JoniGiuro
    Participant

    This would also be a solution but it requires an additional html element and http://jsfiddle.net/jonigiuro/rUkqZ/5/

    #143698
    Kitty Giraudel
    Participant

    I don’t see the point.

    #143699
    Paulie_D
    Member

    JS/JQ to the rescue?

    #143700
    JoniGiuro
    Participant

    Adding the class server side would be even better. Sorry for wasting your time, I just wanted to be sure.
    Thanks
    J

    #143701
    Kitty Giraudel
    Participant
    #143702
    Kitty Giraudel
    Participant

    Sass version, easing the calculations: http://jsfiddle.net/rUkqZ/7/.

    You might want to have a look at @Crocodillon grid system: http://justifygrid.com/.

    #143703
    JoniGiuro
    Participant

    still using nth-child or additional class :) and I don’t want to use a grid system for this little thing. I’ll stick with my old way of doing it, but thanks for letting me see that it still is the most straight forward way.

    Jonas

    #143704
    Paulie_D
    Member

    I suppose it is worth saying that just because it might look different in IE8 is no reason not to use nth type. Etc.

    #143705
    Kitty Giraudel
    Participant

    > I suppose it is worth saying that just because it might look different in IE8 is no reason not to use nth type. Etc.

    Definitely true.

    #143706
    jurotek
    Participant

    Come to think of it, something like this could be done by floating image left and give it margin right -100%.
    Then you could use .push class with margin left for each image in row to display them like a grid with no margin on image needed.

    #143713
    jurotek
    Participant

    [Here’s the pen](http://cdpn.io/pjJig “”) just in case I wasn’t clear above

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