Distributing images evenly & horizontally in a Div via CSS

后端 未结 6 612
盖世英雄少女心
盖世英雄少女心 2020-12-23 13:25

I\'m having a difficult time finding specific info for my case. I\'d like to distribute 3 image thumbnails across a 940px div in order to line up with the rest of my content

6条回答
  •  失恋的感觉
    2020-12-23 13:33

    Try add

    position:relative; text-align:center;

    in #thumbs, and set width and margin for (or img) within #thumbs.

    Something like this, testing various values:

    #thumbs a {
      width: 25%;
      margin: 0 4%;
      text-align:center;
    }
    

提交回复
热议问题