0

I created a list and a div, both are display:inline-block;

However the result looks like the attached picture. The position of the right element is 10px lower than on the left side. But why?

enter image description here

The code is:

#menu-social {
    width: 40%;
    padding-top: 4px;
    display: inline-block;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-size: 0;
}

.frlk-top-bar-right {
    width: 60%;
    text-align: right;
    display: inline-block;
    font-size: 0;
}

Does anybody knows it?

Thanks.

Torben
  • 4,888
  • 10
  • 38
  • 71

1 Answers1

1

Add vertical-align

vertical-align: top;

More info:

https://developer.mozilla.org/es/docs/Web/CSS/vertical-align

Marcos Pérez Gude
  • 20,206
  • 4
  • 34
  • 65