GezH
Programmer
- Aug 7, 2002
- 68
Hello.
My HTML has a <ul> element, with list items simply defined as:
<li class="normal">
<p>Some text</p>
</li>
The stylesheet:
#colMain ul#digimedia li.normal {
width:300px;
width/**/:/**/245px;
float:left;
margin-bottom:1em;
padding-right:10px;
height:155px;
height/**/:/**/160px;
}
(This isn't my code btw, I'm editing someone else). Anyway, if the text in the <p> tags is too long, the layout breaks. What I would like is for the list to default to a certain height, but if the text is too long for it to fit, then it automatically adjusts itself to allow the extra text.
Is that possible?
My HTML has a <ul> element, with list items simply defined as:
<li class="normal">
<p>Some text</p>
</li>
The stylesheet:
#colMain ul#digimedia li.normal {
width:300px;
width/**/:/**/245px;
float:left;
margin-bottom:1em;
padding-right:10px;
height:155px;
height/**/:/**/160px;
}
(This isn't my code btw, I'm editing someone else). Anyway, if the text in the <p> tags is too long, the layout breaks. What I would like is for the list to default to a certain height, but if the text is too long for it to fit, then it automatically adjusts itself to allow the extra text.
Is that possible?