WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] image with li:after goes after submenu? (3 posts)

  1. Kettercat
    Member
    Posted 1 year ago #

    Hey,

    I'm trying to use the li:after code to add an image next to a list item, it works great apart from this page:
    http://mline.diggin.co.il/dermo-cosmetic/ (the menu on the right sidebar)
    This is the current page, and the button appears below the children of the submenu. How do I put it next to the parent itself?

    Thanks!

  2. sekli
    Member
    Posted 1 year ago #

    You are adding the arrow icon after the list item, and since the list item contains the child list, the arrow shows up after the whole thing.

    You probably want to try using after on the link inside the list item.
    So something like
    .side-menu li a:after

  3. Kettercat
    Member
    Posted 1 year ago #

    Works great! Thanks sekli :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags