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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -