jquery - How can I position these divs horizontally? -
i cannot figure out how place lists horizontal, have played appreciate if someones gives me advice. http://jsfiddle.net/py3de/74/
<div class="source"> <div class="item"><span class="closer"></span>s1</div> <div class="item"><span class="closer"></spanhow>s2</div> <div class="item"><span class="closer"></span>s3</div> </div> <div class="target"> <div class="empty"></div> <div class="empty"></div> <div class="empty"></div> <div class="empty"></div> <div class="empty"></div> </div>
for sort of stuff need add width source. see http://jsfiddle.net/harendra/2phuw/1/
you need change css in following way.
.source{ display:block; overflow:auto; width:200px; } .item{ float:left; overflow:auto; }
Comments
Post a Comment