Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9126919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:09:46+00:00 2026-06-17T07:09:46+00:00

I have a list item that contains a link inside. I’ve styled the list

  • 0

I have a list item that contains a link inside. I’ve styled the list item be a link itself and has css properties :active enabled to make it appear to be clicked. However, I would like that to not happen when I’m clicking the link inside it as to not be confusing where the user is actually ending up.

before I changed anything:

.store-list-item:active {
    -webkit-box-shadow: inset 2px 2px 2px 2px rgba(0, 0, 0, 0.6);
    box-shadow: inset 2px 2px 2px 2px rgba(0, 0, 0, 0.6);
}

after trying with guards:

.store-list-item:active when not (.store-list-item .make-default:active) {
    -webkit-box-shadow: inset 2px 2px 2px 2px rgba(0, 0, 0, 0.6);
    box-shadow: inset 2px 2px 2px 2px rgba(0, 0, 0, 0.6);
}

Is this possible? If not, any workarounds?

EDIT: I Added a jsfiddle of what’s exactly happening.
http://jsfiddle.net/cV8ep/1/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T07:09:47+00:00Added an answer on June 17, 2026 at 7:09 am

    Workaround

    If you apply your styling that is currently on the li instead to a new wrapper div that will be inside that li, a wrapper which contains all but the “Make Default” button, then apply a position: relative on the li and a position: absolute on the button to position it back over the wrapper in about the same place, this will disassociate the button from being in the wrapper that gets the :active state (which is now that new wrapper div, not the li). This will prevent the activation of the effect on the click of the button.

    See this fiddle (which has a few “hacky” points to it, like I just overrode the .pull-right class for the sake of illustration; you would want to be a bit more elegant about the actual construction of the code).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list view that displays a collection of items, each item has
I have a list of data that is a schedule. Each item has a
I have a list view item which has a button and displays properties on
I have a list item data template that contains a textbox and a combobox.
I have some code that inserts a list item into a list... I then
I have a threaded server application that stores List<Item> dataList . There is a
I have a list item with a button inside. When the button is shown,
I have one list, which the item render it`s like this: link . But
I have a list containing 98 items. But each item contains 0, 1, 2,
I have a list view that contains some data, I want to share it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.