html - Set height of p-element as percentage of containing div -
i want set height of <p></p> tag. many suggest setting line-height or margin, won't suffice, want p-tag percentage of containig div. actually, want vertically distribute p-tags across height. if them same size, can vertical-align , display: table , display: table-cell
<div> <p>foo<p> <p>bar<p> </div> i know number of <p></p> tags.
<p height="int%">lala </p> that set height of line of text percentage of containg div believe if not <div height="int%" > <p> lalal </p> </div> set padding work. work. if want font stretched think need new font.
Comments
Post a Comment