A
A
Alexey2012-11-03 00:28:38
HTML
Alexey, 2012-11-03 00:28:38

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

2 answer(s)
A
antonzaycev, 2012-11-03
@Squier

use display: inline-block on item list and text-align:center on
ps wrapper for ie7 need hack to support display: inline-block

P
psywalker, 2012-11-06
@psywalker

Am I late ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question