Distributing images evenly & horizontally in a Div via CSS

后端 未结 6 613
盖世英雄少女心
盖世英雄少女心 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:46

    why wouldn't the wrapping id div thumbs be used as a container with a top padding of 90px, and the other internal elements use a simple class (not an id so it can be reused), that all float left. that way they horizontally align perfectly, and also the wrapping container provides the margin you are looking for. you'll also use considerably much less code to accomplish what you want.

提交回复
热议问题