li::marker

Post here questions and problems related to editing and publishing DITA content.
gyinshuen
Posts: 3
Joined: Tue Sep 09, 2025 11:17 am

li::marker

Post by gyinshuen »

Hi,
I had enlarged li::marker in my CSS file into 1.5em. However, the content of the list goes down after I enlarged the bullet, do we have a way to let the bullet align with the content?
Screenshot 2025-10-09 103528.png

Code: Select all

ul li::marker{
    font-size: 1.5em; /* Increase bullet size */
}
You do not have the required permissions to view the files attached to this post.
julien_lacour
Posts: 717
Joined: Wed Oct 16, 2019 3:47 pm

Re: li::marker

Post by julien_lacour »

Hello,

To keep the alignment, you should better use an image instead of the original disk:

Code: Select all

ul li::marker {
  content: url("bullet.svg");
}
With the following image for example:

Code: Select all

<svg xmlns="http://www.w3.org/2000/svg" width="10px" height="10px">
    <circle cx="5" cy="5" r="5" />
</svg>
Regards,
Julien
Post Reply