Results 1 to 2 of 2

Thread: cursor problem when there is table element inside div tag

  1. #1
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default cursor problem when there is table element inside div tag

    Hi,

    I understand that
    cursor: default -> arrow cursor
    cursor: hand -> hand cursor

    I have a scenario of following coding:

    Code:
    <div style="height:50px;width:615px;font:16px/26px Georgia, Garamond, Serif;overflow:scroll;">
    <table cellspacing="1" cellpadding="1" border="0">
    				<tr>
    					<td width="100" align="left" valign="top">this is testing</td>
    				</tr>
    </table>				
    </div>
    Whenever I have a table element within the DIV tag, then it will appear as Cursor hand when mouseover. I need to make it appear as Cursor default (arrow). is this a known issue ? I tested in firefox, IE8

    I even tried with, putting "cursor:default" in the DIV style
    <div style="height:50px;width:615px;font:16px/26px Georgia, Garamond, Serif;overflow:scroll;cursor:default;">

    I even tried with, using class
    <style>
    setCursor{
    cursor:default;
    }
    </style>

    <div class="setCursor" style="height:50px;width:615px;font:16px/26px Georgia, Garamond, Serif;overflow:scroll;">

    but failed, as it still showing cursor hand when mouseover.

    Please help, as I need table element within DIV tag.

    Regards,
    Vincent

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there sky,

    and a warm welcome to these forums.

    I tested your code and the cursor behaved as expected:-
    "default" over the div, and "text" over the text.

    I would suggest that the probable cause of your problem is somewhere in your stylesheet.

    Give us a link to the site or the full code, to enable to examine the problem in depth.

    coothead

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
  •