Last active
December 22, 2015 17:49
-
-
Save rummelonp/6508297 to your computer and use it in GitHub Desktop.
float でタイル上に並べてるやつを強制的に横に並べて横スクロールにしたい
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container clearfix" style="overflow-x: auto; width: 900px;"> | |
<div class="sub-container" style="width: <%= @parts.size * 300 %>px;"> | |
<% @parts.each do |part| %> | |
<div class="parts pull-left" style="width: 300px;">...</div> | |
<% end %> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container clearfix" style="width: 900px;"> | |
<% @parts.each do |part| %> | |
<div class="parts pull-left" style="width: 300px;">...</div> | |
<% end %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment