How to align center the Add 2 Calendar Button? #374
-
I am unable to align center the Add 2 Calendar button and I don't see any short code on how to do that in the installation guide. Any suggestions on how to align the Add 2 Calendar button in Word Press Divi would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Hi there, The button is rendered as block element. This makes it block the full line, while the visible element flows to the left. If you are still experiencing problems, you should check the surrounding container. If possible, assign it the All the best! |
Beta Was this translation helpful? Give feedback.
-
Hi Jens, |
Beta Was this translation helpful? Give feedback.
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
orinline="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 viadisplay: flex; justify-content: center;
).All the best!