smirn0ff Posted December 16, 2013 Report Share Posted December 16, 2013 Доброго времени суток.Помогите, пожалуйста, выровнять вертикально картинки товаров по центру.Пробовал через, но ее получилось. .textalign{ 2 display: table-cell; 3 } Quote Link to comment Share on other sites More sharing options...
0 Игорь Ермаков Posted December 16, 2013 Report Share Posted December 16, 2013 (edited) On 12/16/2013 at 7:19 PM, smirn0ff said: .textalign{ 2 display: table-cell; 3 } Что это? Если вас устраивает display:table-cell;То дальше просто используйте vertical-align; Edited December 16, 2013 by Игорь Ермаков Quote Link to comment Share on other sites More sharing options...
0 smirn0ff Posted December 17, 2013 Author Report Share Posted December 17, 2013 дальше всмысле vertical-align указать для картинки или для этого же дива? Quote Link to comment Share on other sites More sharing options...
0 Игорь Ермаков Posted December 17, 2013 Report Share Posted December 17, 2013 Второе. Quote Link to comment Share on other sites More sharing options...
0 chocolate_moles Posted December 18, 2013 Report Share Posted December 18, 2013 (edited) для блока в котором находится картинка height: 200px /* нужная высота */line-height: 200px /* = высоте */font-size: 0 /* чтобы = по центру */для самой картинкиvertical-align: middle Edited December 18, 2013 by chocolate_moles Quote Link to comment Share on other sites More sharing options...
0 smirn0ff Posted December 22, 2013 Author Report Share Posted December 22, 2013 On 12/18/2013 at 6:59 AM, chocolate_moles said: для блока в котором находится картинка height: 200px /* нужная высота */line-height: 200px /* = высоте */font-size: 0 /* чтобы = по центру */для самой картинкиvertical-align: middleСпасибо, получилось Quote Link to comment Share on other sites More sharing options...
Question
smirn0ff
Доброго времени суток.
Помогите, пожалуйста, выровнять вертикально картинки товаров по центру.
Пробовал через, но ее получилось.
}
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.