I have a div with paragraph and inside that span is there height of div is given. Both the paragraph and span were inherited, but now I want to decrease the height of the span using CSS. The reduction in height may be around 10-20px using calc
.parent{
height:121px;
width:300px;
overflow:hidden;
}
p,span{
max-height:inherit;
}
<div class="parent">
<p>
<span>
here my text will come here my text will come here my text will come here my text will come here my text will come here my text will come here my text will come here my text will come here my text will come here my text will come here my text will come here my text will come
</span>
</p>
<div>