How to center text with Markdown?

Markdown does not support this feature natively, but you can achieve this wrapping Markdown into HTML. As a rule of thumb, most ‘flavors’ of Markdown will render this as centered text: Specifically for Grav, as their documentation states, you should do these following steps: in your system configuration file user/config/system.yaml make sure to activate the markdown extra option: in your … Read more

What does auto do in margin: 0 auto?

When you have specified a width on the object that you have applied margin: 0 auto to, the object will sit centrally within it’s parent container. Specifying auto as the second parameter basically tells the browser to automatically determine the left and right margins itself, which it does by setting them equally. It guarantees that the left and right margins will … Read more