How do I force my float class to float:left regardless of wrapper width. I want the content which is called into the class g_photo to content going right, not to drop to the next line when it reaches the end of the wrapper.
html:
<div id="wrapper">
<% for gallery_photo in @gallery.gallery_photos %>
<div class="g_photo"><%= image_tag gallery_photo.photo.url(:normal) %></div>
<% end %>
</div>
css:
#wrapper{width:800px;}
.g_photo{width:auto; float:left; margin-right:10px;}
If I set a width of 2000px this work fine for static content but the content is dynamic so the width maybe small of bigger.
I will be great full for any help!
p.s. I'm using jScrollHorizontalPane I can get it to work if I declare the width but not on auto width.