Jump to content

Anchoring <li> bullet point


Recommended Posts

I have a simple list of articles I read that I feature at my subdomain, http://notes.gabrielsistare.com. It's basically an unordered list of links with a little bit of description associated with each. I would like to anchor to the individual "entries," but I was wondering if it is possible to style the list item bullet points to include an anchor. I don't know if this is at all possible, but, ideally, for each new list item I include, it would feature an anchored bullet point where I could link to. Thanks for any and all help.

Link to post
Share on other sites

If you give each <li> element an id attribute, you can link to it using a hash URL.

<a href="#something">Go to "Something"</a>[ . . . ]<li id="something">Content</li>

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...