Forum Moderators: not2easy

Message Too Old, No Replies

will not validate

         

prozak76

8:15 pm on Jan 11, 2004 (gmt 0)

10+ Year Member



W3.org will not validate the following as valid css.
Why?
<td class="s22" title="Destiny&#039;s Birthday!" onclick="popupEvent(12425,250,220)" style="cursor: pointer; cursor: hand;">8</td>

This is the error message I get from w3.
Invalid number : cursorhand is not a cursor value : hand

pageoneresults

8:32 pm on Jan 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Try changing the value to pointer instead of hand.

<added> I see you have two cursor attributes. Get rid of the one that reads cursor:hand.

[edited by: pageoneresults at 8:34 pm (utc) on Jan. 11, 2004]

iamlost

8:32 pm on Jan 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You need to use a "uri" to call the "hand". It is not a recognized value. See bottom of quote for w3c example.


18.1 Cursors: the 'cursor' property

'cursor'
Value: [ [<uri> ,]* [ auto ¦ crosshair ¦ default ¦ pointer ¦ move ¦ e-resize ¦ ne-resize ¦ nw-resize ¦ n-resize ¦ se-resize ¦ sw-resize ¦ s-resize ¦ w-resize¦ text ¦ wait ¦ help ] ] ¦ inherit
Initial: auto
Applies to: all elements
Inherited: yes
Percentages: N/A
Media: visual, interactive

This property specifies the type of cursor to be displayed for the pointing device. Values have the following meanings:

auto
The UA determines the cursor to display based on the current context.
crosshair
A simple crosshair (e.g., short line segments resembling a "+" sign).
default
The platform-dependent default cursor. Often rendered as an arrow.
pointer
The cursor is a pointer that indicates a link.
move
Indicates something is to be moved.
e-resize, ne-resize, nw-resize, n-resize, se-resize, sw-resize, s-resize, w-resize
Indicate that some edge is to be moved. For example, the 'se-resize' cursor is used when the movement starts from the south-east corner of the box.
text
Indicates text that may be selected. Often rendered as an I-bar.
wait
Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass.
help
Help is available for the object under the cursor. Often rendered as a question mark or a balloon.
<uri>
The user agent retrieves the cursor from the resource designated by the URI. If the user agent cannot handle the first cursor of a list of cursors, it should attempt to handle the second, etc. If the user agent cannot handle any user-defined cursor, it must use the generic cursor at the end of the list.

Example(s):

P { cursor : url("mything.cur"), url("second.csr"), text; }

prozak76

8:38 pm on Jan 11, 2004 (gmt 0)

10+ Year Member



Thanks! I now have a valid web page in XHTML and CSS!

Not to bad, for a beginner