Skip to content

How to align center the Add 2 Calendar Button? #374

Answered by jekuer
BrettHoebel asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there,

The button is rendered as block element. This makes it block the full line, while the visible element flows to the left.
You can change this behavior by setting the attribute inline or inline="true". This makes it render inline-block instead. You are then able to control it a little better and usually this is enough to properly align it.

If you are still experiencing problems, you should check the surrounding container. If possible, assign it the display:flex; via css. You can then even position the block style element in a more detailled manner (for example via display: flex; justify-content: center;).

All the best!

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
10 replies
@jekuer
Comment options

@holyl
Comment options

@jekuer
Comment options

@holyl
Comment options

@jekuer
Comment options

Answer selected by jekuer
Comment options

You must be logged in to vote
1 reply
@jekuer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants