Line height vs Margin

nana ๐Ÿง™๐Ÿปโ€โ™€๏ธ
Design & Code Repository
1 min readMar 23, 2017

Using Margin: When modifying the gap between the element and the element

Using Line height: When modifying line height in the paragraph.

/* Keyword values */
line-height: normal;

/* Unitless: use this number multiplied by
the element's font size */
line-height: 3.5;

/* <length> values */
line-height: 3em;

/* <percentage> values */
line-height: 34%;

/* Global values */
line-height: inherit;
line-height: initial;
line-height: unset;

That's all for nowโค๏ธ

๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰ Happy codesign today ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰

Lastly, I would like to share <FrontEnd30 /> where I learnt many cool front-end techniques.

--

--