This topic contains 1 reply, has 0 voices, and was last updated by rporteous 7 years, 9 months ago.
-
AuthorPosts
-
February 1, 2017 at 1:27 am #1913
rporteousHello,
I am building some advanced multi-page templates using Advanced PDF/HTML… I am looking for CSS code examples, at the moment particularly for styling lists… Does anyone have any examples they would be happy to share? I am particularly interested in styling the Terms & Conditions numbered list including a list style like;
1 HEADING
1.1 Lorem ipsum dolor sit amet, consectetur adipiscing elit.
1.2 Pellentesque quis velit consequat nisl venenatis molestie.
1.3 Fusce tempor eros eu ipsum euismod, auctor commodo nulla interdum.
a) Ut imperdiet quam at elementum vehicula.
b) Duis id leo pharetra, accumsan ex vitae, consequat purus.
c) Nunc fringilla sapien dictum lacus euismod rutrum.
1.4 Fusce tempor eros eu ipsum euismod, auctor commodo nulla interdum.
I look forward to hearing any working examples…
Thanks.
Russ
This is a cached copy. Click here to see the original post. -
February 14, 2017 at 8:18 pm #1914
rporteousOk… After a LOT of toying around, I have started to sort our a few of the style and display issues I had wanted fixed…. Here are a few things I learned;
https://jsfiddle.net/rport/0fcygcq6/1/
LIST STYLE CSS
The default style for me was terrible… I had to do a little CSS reset that worked for me to get a basic list going;
HTML Code:
ol {
margin: 1em 0 0 1.5em;
padding: -1em 0 0 0;
}
li {
margin: 0 0 0 1em;
padding: 0 0 0 0;
}
For lists, I had to go to the BFO manual and this is how to get a the list style I was looking for;HTML Code:
-
HEADING
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Pellentesque quis velit consequat nisl venenatis molestie.
- Fusce tempor eros eu ipsum euismod, auctor commodo nulla interdum.
- Ut imperdiet quam at elementum vehicula.
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Duis in dui lacinia, consequat leo sit amet, laoreet augue.
- Cras et neque et diam dictum maximus.
- Duis id leo pharetra, accumsan ex vitae, consequat purus.
- Nunc fringilla sapien dictum lacus euismod rutrum.
- Ut imperdiet quam at elementum vehicula.
- Fusce tempor eros eu ipsum euismod, auctor commodo nulla interdum.
-
HEADING 1
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Pellentesque quis velit consequat nisl venenatis molestie.
- Fusce tempor eros eu ipsum euismod, auctor commodo nulla interdum.
- Ut imperdiet quam at elementum vehicula.
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Duis in dui lacinia, consequat leo sit amet, laoreet augue.
- Cras et neque et diam dictum maximus.
- Duis id leo pharetra, accumsan ex vitae, consequat purus.
- Nunc fringilla sapien dictum lacus euismod rutrum.
- Ut imperdiet quam at elementum vehicula.
- Fusce tempor eros eu ipsum euismod, auctor commodo nulla interdum.
-
HEADING
-
AuthorPosts
You must be logged in to reply to this topic.