I have an issue in my stylesheets when if a <p> tag is nested within a <li>, the numbering in PDF output is offcentre as above, even though the styles are the same. (If the text is directly within the <li> tag its fine but this is not always possible.
An excerpt from my stylesheet is as follows. As you can see, the p and li styles have the same light height and padding. I even tried a li > p combinator style to see if that worked with no luck. Any help appreciated,
Paul
Code: Select all
p
{
font-size: 1em;
/* 12pt */
line-height: 1.5;
padding-top: 4px;
padding-bottom: 4px;
margin-top: 0pt;
margin-bottom: 0pt;
}
li
{
font-size: 1em;
/* 12pt */
line-height: 1.5;
padding-top: 4px;
padding-bottom: 4px;
margin-top: 0pt;
margin-bottom: 0pt;
}
li > p
{
font-size: 1em;
/* 12pt */
line-height: 1.5;
padding-top: 4px;
padding-bottom: 4px;
margin-top: 0pt;
margin-bottom: 0pt;
}