Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Location
    PA
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    CSS Cursor Properties

    Hey there,
    On a site I'm working on I have a slideshow with numbered thumbnails to the pages. The code that I found online to get it working had the CSS rule

    Code:
    .da-dots span{
    	display: inline-block;
    	position: relative;
    	width: 21px;
    	height: 21px;
    	border: 2px solid #808285;
    	background: rgba(42,170,220,.6);
    	margin: 5px;
    	cursor: pointer;
    so that when the user hovered over the box the cursor wouldn't stay as the default arrow thing. However, after clicking on one of the thumbs to get to another slide, the cursor remains as the pointer and doesn't go back to the default arrow. Is there a css rule I could use so that the pointer only comes up when the user hovers over the item, and doesn't stay behind?

    Thanks. This is my first post so sorry if there's anything I missed, I didn't think I needed too much code.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,916
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    There should be a “current” class on the item you’ve clicked (I suppose you want the default cursor on the currently active item?) so you need to set cursor: default on that current item.

  • Users who have thanked VIPStephan for this post:

    mwick1 (11-29-2012)

  • #3
    New to the CF scene
    Join Date
    Nov 2012
    Location
    PA
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Ohh I see what you're saying...I actually meant that the slide itself was then using the pointer cursor. But based off what you said I was able to just add the css rule to the slides themselves and it works. Thanks a lot! I can tell I'm gonna like this place.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •