madskillzで説明させてください。
- 現在の状況
URLの配列によって形成されるギャラリーをやっています。Haml コード:
%section#content
%form
%fieldset
#gallery
%i.gallery_title Все категории
.cat-item
- @all.zip(@all_thumbs).each do |full, thumb|
.cat-pic
%a{href:"#{full}", rel:'lightbox[roadtrip]'}
%img{src:"#{thumb}", alt:"Панно \"#{full}\""}
%br
%input{type:'radio', name:'picture', value:"#{full}"}
CSS(サス)
#content
margin: auto
margin-top: 25px
padding-bottom: 100px
width: 950px
align: center
form
display: inline-block
fieldset
background-color: darken($bg, 10%)
border-radius: 10px /* wtf firefox */
@include round(10px)
.cat-item
height: 150px
overflow-x: scroll
overflow-y: hidden
background: $bg
@include round(10px)
min-width: auto !important
.cat-pic
margin-left: 5px
margin-top: 5px
height: 120px
float: left
input
width: 100px
すべての写真を 1 行に 1 列に並べて、x 軸のスクロールバーを追加したいと考えています。私はcssにとてもうんざりしています。お役に立てれば幸いです。