Sign in to follow this  
iBars

Не получается вертикально отцентрировать блок/картинку

Recommended Posts

Превьюшки, которые слева, не центрируются по вертикали.

Я пробовал:

1. vertical-align: middle

2. display: table (родительский элемент) и table-cell (дочерний эемент)

3. top: 50% и transform y -50% (отображается некорректно на некоторых устройствах, да и костыль к тому же)

Edited by iBars

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Member Statistics

    46,421
    Total Members
    3,128
    Most Online
    Openair
    Newest Member
    Openair
    Joined
  • Recently Browsing   0 members

    No registered users viewing this page.