Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Why Does Flex Direction Column Disable Top , Bottom?

Too Much Space

I’m trying to adjust the paragraph spacing and move it closer to the title, but Top or Bottom seems to be disabled when using flex-direction: column… What can I do to push up .par2?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Properties bottom and top work with position: absolute; elements. They don’t work with other positions.

You have to use padding-top or margin-top with negative meaning (for example -10px).

And you can check properties margin and padding by headers (‘CATORING’, ‘EVENT HOSTING’, ‘DELIVERY’) using GoogleChrome Devtools. Most likely it is they who prevent the text from being located higher.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading