I
I
Igor Fedorov2016-08-11 08:03:03
css
Igor Fedorov, 2016-08-11 08:03:03

Vertical align svg?

These icons are inline svg. They are display:inline-block and vertical-align:middle. However, everything is still going somewhere. If the parent of the breadcrumbs is line-height:1, then everything is fine ... I
suspect that this is due to the fact that body has line-height:1.45 set.
How can I universally align inline svg icons?
gcRB9HrBJLw.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fetis26, 2016-08-11
@fetis26

I have been using flexbox for a long time for this

.container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

and all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question