Commit e79f875d authored by Julie Blanc's avatar Julie Blanc
Browse files

[journal] add break avoid in toc example

parent f7754ca7
......@@ -158,7 +158,7 @@ In the CSS, the `target-counter` property is used within `::before` and `::after
```CSS
#toc li a::after{
content: target-counter(attr(href), page);
float: right;
float: right;
}
```
......@@ -172,19 +172,25 @@ If you need to add counters or leaders to your table of contents generated above
```css
/* set the style for the list numbering to none */
#list-toc-generated{ list-style: none;}
#list-toc-generated {
list-style: none;
}
#list-toc-generated .toc-element a::after{
#list-toc-generated .toc-element {
break-inside: avoid;
}
#list-toc-generated .toc-element a::after {
content: " p. " target-counter(attr(href), page);
float: right;
}
#list-toc-generated .toc-element-level-1{
#list-toc-generated .toc-element-level-1 {
margin-top: 25px;
font-weight: bold;
}
#list-toc-generated .toc-element-level-2{
#list-toc-generated .toc-element-level-2 {
margin-left: 25px;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment