JSFiddle - React, Tailwind, and code Playground
HTML
<div class="bodyCopy">
<p>I've a text in side heading with multiple lines. Want the spacing the two lines to increase, so I set a line-height. It also increases spacing above the first line.</p>
<p>I've a text in side heading with multiple lines. Want the spacing the two lines to increase, so I set a line-height. It also increases spacing above the first line.</p>
</div>
CSS
.bodyCopy {
background: pink;
border: 1px solid pink;
padding: 3px;
}
p {
line-height: 28px;
margin-bottom: 20px;
}
.bodyCopy > p:first-child {
margin-top: -9px;
}
.bodyCopy > p:last-child {
margin-bottom: -9px;
}
/* Global Reset */
*,
*:after,
*:before {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-box-sizing: border-box;
}
body,input,select,textarea,button {
text-rendering: optimizeLegibility;
font-family: "Helvetica Neue", helvetica, arial;
font-size: 16px;
color: #202024;
line-height: 1;
}
body {
padding: 80px;
}
ul,
li {
list-style: none;
}
a,
a:active,
a:visited {
color: #0097e9;
color: #202024;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}