Skip to content
Fix Code Error

How to change the cursor into a hand when a user hovers over a list item?

March 13, 2021 by Code Error
Posted By: Anonymous

I’ve got a list, and I have a click handler for its items:

<ul>
  <li>foo</li>
  <li>goo</li>
</ul>

How can I change the mouse pointer into a hand pointer (like when hovering over a button)? Right now the pointer turns into a text selection pointer when I hover over the list items.

Solution

In light of the passage of time, as people have mentioned, you can now safely just use:

li { cursor: pointer; }
Answered By: Anonymous

Related Articles

  • Combining items using XSLT Transform
  • Fix top buttons on scroll of list below
  • insert tables in dataframe with years from 2000 to…
  • Active tab issue on page load HTML
  • How to show title in hover - css / jquery
  • Onclick, the button moves down, why can that due to?
  • Find the nth element in vue-test-utils
  • don't know what went wrong nav bar with Tailwind CSS…
  • Navbar not filling width of page when reduced to mobile view
  • The theme changer for my code does not seem to work
  • How to add 'load more' functionality to items on a…
  • What is the origin of foo and bar?
  • VueJS - v-bind:style + hover
  • Centering in CSS Grid
  • Callback functions in C++
  • Python Dataframe Merge Boolean Columns Data into One…
  • Is it possible to apply CSS to half of a character?
  • Convert array to nested JSON object - Angular Material tree
  • After a little scroll, the sticky navbar just is not…
  • Set cursor position on contentEditable
  • custom text position on ipywidgets button
  • Having trouble with my nav bar/header, It used to…
  • What is your most productive shortcut with Vim?
  • Perfomance issues with large number of elements in…
  • Display Grid does not work in Polymer correctly
  • How do i update a javascript variable as its value changes?
  • How to make vuetify navigation drawer to close group…
  • How to add multiple light effects on a pane?
  • Valid values for android:fontFamily and what they map to?
  • Vuetify v-list-item style change on hover
  • What is the opposite of :hover (on mouse leave)?
  • Why Do I get a Stack Overflow error when using…
  • In Ember, how do I create a component that reacts to…
  • How to implement a Navbar Dropdown Hover in Bootstrap v4?
  • HashSet vs. List performance
  • AppCompat v7 r21 returning error in values.xml?
  • Is it possible to use jQuery .on and hover?
  • Node.js Best Practice Exception Handling
  • Calculator: Back key doesnt work in Javascript
  • Polymer dom-repeat not rendering changes with…
  • Obtain most recent value for based on index in a…
  • How do I keep only the first map and when the game…
  • How to make Vue reactive content update quickly?
  • I'm trying to use a stored procedure or function…
  • Do not close the mode in the mouse up event
  • Default Param on Polymer.js Input Range
  • Usage of __slots__?
  • React Multi-level push menu SCSS Back button not working
  • Drop-down menu that opens up/upward with pure css
  • Show data labels inside donut pie chart p5js
  • Bootstrap - center child when parent isn't centered…
  • How to loop through all the buttons to a click event…
  • Is this request generated by EF Core buggy or is it my code?
  • python 3.2 UnicodeEncodeError: 'charmap' codec can't…
  • Pandas / Python - Compare numerically each row with…
  • Is it possible to bind the same variable across…
  • pandas: best way to select all columns whose names…
  • Keypress in backbone.js?
  • creating multiple frames in tkinter
  • How to apply rolling t.test with pandas?
  • CSS Input with width: 100% goes outside parent's bound
  • How can I create a Promise in TypeScript from a union type
  • Javascript and css animation
  • How to Fix hover not working after JS script…
  • Why cat does not work with parameter -0 in xargs?
  • CSS gradient animation degree change
  • center 3 items on 2 lines
  • VueJS - Conditional component mouse events
  • in doesn't call method on item change
  • :hover transition on 1 button affect the other one
  • Vuetify 2.2 DataTable multiple filters
  • In CSS Flexbox, why are there no "justify-items" and…
  • How to stop the elements from growing when hovering…
  • Error in styles_base.xml file - android app - No…
  • CSS not applied to Polymer 2 web component in Chrome
  • Possible to make labels appear when hovering over a…
  • Dart core element core-collapse
  • Open a column of buttons when another button is…
  • Pandas pivot_table: filter on aggregate function
  • How to return grandchilds names for each person in array JS?
  • Add a popup modal to vuetify vue.js
  • What does "Fatal error: Unexpectedly found nil while…
  • How to specify line breaks in a multi-line flexbox layout?
  • Content showing over the top of tooltip
  • How do I style appcompat-v7 Toolbar like…
  • Generate sequence of dates for given frequency as…
  • How to change the color of vaadin-select-text-field…
  • Detect IF hovering over element with jQuery
  • Change navbar color in Twitter Bootstrap
  • How to change CSS cursor dynamically vuejs
  • Hidden property of a button in HTML
  • Bootstrap Card - change width
  • How to set HTML5 required attribute in Javascript?
  • Changing Icon Color behind ListTile in an…
  • How to use html template with vue.js
  • How to VueJS router-link active style
  • How to create a search filter using Vue js from API Data?
  • How can I pass a wct test while rearranging children…
  • SwiftUI Parsing and displaying values form a JSON call
  • Conditionally bind custom-directives in vue js for…

Disclaimer: This content is shared under creative common license cc-by-sa 3.0. It is generated from StackExchange Website Network.

Post navigation

Previous Post:

How to format numbers as currency string?

Next Post:

Length of a JavaScript object

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

.net ajax android angular arrays aurelia backbone.js bash c++ css dataframe ember-data ember.js excel git html ios java javascript jquery json laravel linux list mysql next.js node.js pandas php polymer polymer-1.0 python python-3.x r reactjs regex sql sql-server string svelte typescript vue-component vue.js vuejs2 vuetify.js

  • you shouldn’t need to use z-index
  • No column in target database, but getting “The schema update is terminating because data loss might occur”
  • Angular – expected call-signature: ‘changePassword’ to have a typedeftslint(typedef)
  • trying to implement NativeAdFactory imports deprecated method by default in flutter java project
  • What should I use to get an attribute out of my foreign table in Laravel?
© 2022 Fix Code Error