3

i have a realy stupid problem -.- following:

<ul id="selectable" data-bind="foreach: folders">
  <li>
    <a href="#" data-bind=" text: $data, click: $root.goToFolder"></a>
  </li>
</ul>

its KnockoutJS combined with a bit of SammyJS... atm you see i got a 'a' inside of the 'li'... so that there will appear this "finger" on the mousehover... but if i remove the 'a', ofc the "finger" wont be shown. instead it will appear this (lets call it) text-editor cursor... but its not obviously to the user that he is able to klick this element... is there a way to show this "finger" like on a link hover?

in this example they have also

<ul><li>Item</li></ul>

and it shows this "finger"

mishik
  • 9,973
  • 9
  • 45
  • 67
user2572986
  • 33
  • 1
  • 3
  • 4
    possible duplicate of [Change the mouse cursor on mouser over to anchor-like style](http://stackoverflow.com/questions/7185044/change-the-mouse-cursor-on-mouser-over-to-anchor-like-style) – jbabey Jul 11 '13 at 14:18

4 Answers4

10

I'd suggest:

li {
    cursor: pointer;
}

References:

David Thomas
  • 249,100
  • 51
  • 377
  • 410
2

Add cursor: pointer to li.

li {
    cursor: pointer;
}

check css-tricks for information.

Praveen
  • 55,303
  • 33
  • 133
  • 164
0

What about...

li:hover {
    cursor: pointer;
}
Dan Lister
  • 2,543
  • 1
  • 21
  • 36
0

Following CSS will take care of this:

li { cursor: hand; cursor: pointer; }
Pankaj
  • 27
  • 7
  • 1
    I am pretty sure that 'hand' is not a valid property https://developer.mozilla.org/en-US/docs/Web/CSS/cursor Even if it was, it would be overridden by the second one, therefore, this makes no sense – Wottensprels Jul 11 '13 at 14:32
  • 1
    IE 5.0 and 5.5 only supported hand. Since IE 6 and 7 support pointer, it is not necessary to use hand but it is nice to have cross browser support. – Pankaj Jul 11 '13 at 19:27