Skip to content

Button with icons odd alignment #2931

Answered by adamwathan
tiagomatosweb asked this question in Help
Discussion options

You must be logged in to vote

Looks like just a quirk of how CSS behaves with two inline elements next to each other that contain varying content.

Your best bet is to use flexbox to have explicit control over how you want stuff like this to render horizontally, updated your example here:

https://jsfiddle.net/okqr9amz/3/

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by simonswiss
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2931 on November 28, 2020 15:07.