I have a div that has a couple of p tags in it.
<div id="myDiv">
<p>abcdefgh ijkl mnop</p>
<p>qrst uvwxyz</p>
</div>
And the CSS
div#myDiv{
display: inline-block;
}
div#myDiv p{
padding: 0;
height: 100px;
min-width: 250px;
line-height: 100px;
background: Green;
font-size: 5em;
}
Here is a FIDDLE
In the fiddle I've manually put font-size to 5em which kind of expands the text inside the p tags to the full height of the paragraph. What I'd like to have is to set it so that it expands and shrinks according to the height and width of the p tag and adjusts itself to cover the full height. I tried % font-size but that doesn't work (which is essentially em anyway, right?). Also tried pixels but that again would be fixed not fluid.
Any ideas fellow programmers and designers?