Answer the question
In order to leave comments, you need to log in
Div, float:left and width?
Guys, I'm already drunk and I just can't figure out how to solve the problem.
There is a mosaic of identical divs. Let's say 50x50 for the width of the pictures. So, depending on the width of the browser, you need to display a different number of images.
float:left does everything ok for everyone, but there is an empty space on the right, which is less than 50px
.
Percentages will not work, for every 50px of browser change it is nonsense to write.
Spasmbo
Answer the question
In order to leave comments, you need to log in
use display: inline-block on item list and text-align:center on
ps wrapper for ie7 need hack to support display: inline-block
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question