Right-align block elements in HTML

后端 未结 8 878
故里飘歌
故里飘歌 2021-02-06 23:53

I\'d like to right-align block elements in a floating container.

Assume the following markup.

8条回答
  •  不思量自难忘°
    2021-02-07 00:46

    Add overflow: hidden; to the parent div of the images. It will wrap around the images when you float them, and clear the images from the right with clear: right

    http://jsfiddle.net/zBnqQ/15/

提交回复
热议问题