SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Mazel tov! bronze trophy kohoutek's Avatar
    Join Date
    Aug 2004
    Location
    Hamburg, Germany
    Posts
    4,248
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Oh man. I am getting frustrated. :(

    Now that I have managed to sort out other problems, a new one has occured. The links don't work properly. When I validate it gives me the cursor point thing is not valid.

    I have read through some advice in other threads here but that did not solve my problem either. If I put the cursor pointer cursor hand thing in the css file it gives me more errors.

    These are the errors I get:

    Code:
    URI : http://www.currentswillshift.net/cws...id=0,1,0,0,1,0
    
        * Line: 32
    
          Invalid number : cursorhand is not a cursor value : hand
        * Line: 41
    
          Invalid number : cursorhand is not a cursor value : hand
        * Line: 50
    
          Invalid number : cursorhand is not a cursor value : hand
    I am really at the end of my wits.

  2. #2
    SitePoint Wizard Pedro Monteiro's Avatar
    Join Date
    Sep 2002
    Location
    Lisbon
    Posts
    1,393
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Which validator are you using?

  3. #3
    SitePoint Member
    Join Date
    Mar 2004
    Location
    Washington State, USA
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cursor:hand is an IE-specific property so as such is not valid with the W3C.

    The only cursor properties defined by W3C for CSS2 are auto, crosshair, default, pointer, move, e-resize, ne-resize, nw-resize, n-resize, se-resize, sw-resize, s-resize, w-resize, text, wait, help, and <uri>. The URI one "retrieves the cursor from the resource designated", such as "P { cursor : url("mything.cur"), url("second.csr"), text; }"

    Index DOT Html/Css gives most of the possible values for the cursor properties and tells whether or not they are browser-specific.

    I saw where CSS3 looks like it might have a few more properties, but I'm barely into CSS2 yet so haven't looked that far "ahead". It's too bad about some of the neat effects that are IE-only or Netscape-only so won't validate. They say it's a tradeoff and I agree.
    Daring to stand up for Web-APP.org
    (Open Source Project for WebAPP Web Automated Perl Portal System)

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    Cursor hand is proprietary ie code and won't validate. However it won't do any harm either

    The only way to display cursor pointer in ie5 and ie5.5. is to use cursor:hand. Ie6 is ok with cursor: pointer.

    Therefore you have 2 choices.

    1)Don't support ie5 and 5.5. (about 50% of browsers).

    2) have invalid css but support those browsers

    There is a third option and you could hide the invalid css inside ie's conditional comments where it will be hidden form the validator and thus allow your page to seemingly validate.

    The choice is yours

    paul

  5. #5
    Mazel tov! bronze trophy kohoutek's Avatar
    Join Date
    Aug 2004
    Location
    Hamburg, Germany
    Posts
    4,248
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys. This was actually a bug in my php file and not a CSS issue. Thanks again though.


Bookmarks

Posting Permissions

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