开发者

Align sibling divs right while jQuery expands width

开发者 https://www.devze.com 2023-02-07 09:00 出处:网络
http://jsfiddle.net/imHavoc/b8Ktj/10/ The problem is when one div\'s width expands so does the bounding开发者_JAVA技巧 div, which all the siblings are \"left aligned\" to. I cannot figure out how to

http://jsfiddle.net/imHavoc/b8Ktj/10/

The problem is when one div's width expands so does the bounding开发者_JAVA技巧 div, which all the siblings are "left aligned" to. I cannot figure out how to keep the sibling divs aligned to the right while one div's width expands.


Add float: right and clear: right to div.navScroll.

The demo you made after my answer: http://jsfiddle.net/imHavoc/b8Ktj/11/

0

精彩评论

暂无评论...
验证码 换一张
取 消