Groups
Sign in
Groups
js-code-prettifier
Conversations
About
Send feedback
Help
Solution: Non-working line numbers in Bootstrap accordion panel
26 views
Skip to first unread message
Peter Tröger
unread,
Jan 9, 2018, 9:16:57 AM
1/9/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to js-code-prettifier
I had the situation that line numbers did not show up when putting the <pre>...</pre> block into a Bootstrap accordion:
<div id="collapse0" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading0">
<div class="panel-body">
<pre class="prettyprint linenums">...</pre>
</div>
</div>
The solution is to add a
list-style-position
argument in the CSS (see also
here
):
<style>
li.L0, li.L1, li.L2, li.L3, li.L4, li.L5, li.L6, li.L7, li.L8, li.L9 {
list-style-type: decimal !important;
list-style-position: inside;
}
</style>
Reply all
Reply to author
Forward
0 new messages