Home > Net >  Why Does Flex Direction Column Disable Top , Bottom?
Why Does Flex Direction Column Disable Top , Bottom?

Time:12-18

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?

CodePudding user response:

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.

CodePudding user response:

You can try remove it because you want to close paragraph spacing and close to title

  • Related