Hi there,
I'm wondering how I can get lists (OL and UL) to avoid a space break only when no sentence comes before it, or if it is the first bit of content in a section.
Here's an example of the extra space:
Any help is much appreciated, as always!
Thanks!
Josh
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
It sounds like you need a specific CSS selector to grab the <ol> and <ul> elements that are the first "child" of another element.
CSS Selectors Reference (w3schools.com)
In general, this might work for you, but also might have unintended issues:
ol:first-child,
ul:first-child {
padding-top: 0;
margin-top: 0;
}
It's possible you have styling on the <li> elements causing the spacing. It's hard to answer the question without seeing the template CSS. Regardless, you will have to edit the CSS of your native pdf template to achieve what you want.
It sounds like you need a specific CSS selector to grab the <ol> and <ul> elements that are the first "child" of another element.
CSS Selectors Reference (w3schools.com)
In general, this might work for you, but also might have unintended issues:
ol:first-child,
ul:first-child {
padding-top: 0;
margin-top: 0;
}
It's possible you have styling on the <li> elements causing the spacing. It's hard to answer the question without seeing the template CSS. Regardless, you will have to edit the CSS of your native pdf template to achieve what you want.
Thanks for your help! Much appreciated!
Views
Replies
Total Likes
Views
Likes
Replies