Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Member Wozza's Avatar
    Join Date
    Mar 2003
    Posts
    53
    Member #
    915
    Ok - basically I want to change the background colour of the table cell when the mouse is over a link, I coded it up like this;

    </script>
    <style type="text/css">
    A:link {
    text-decoration:none;
    background-color:#E2E4E2;
    color: #000000
    }

    A:visited {
    text-decoration:none;
    background-color:#E2E4E2;
    color: #000000
    }

    A:active {
    text-decoration:none;
    background-color:#ff9966;
    color: #000000
    }

    A:hover {
    text-decoration:none;
    background-color:#ff9966;
    color: #000000
    }
    -->
    </style>

    But my problem is that it only changes the colour behind the actual text link and not the whole cell - I can stretch this area with spaces-but thats hardly accurate. Is there a better way to do this?

    Cheers
    Nothing to see here

  2.  

  3. #2
    Senior Member Delerium's Avatar
    Join Date
    Jan 2003
    Location
    Toronto, Ontario, Canada
    Posts
    193
    Member #
    462
    I believe adding should fix it:

    Code:
    a {width: 100%; display: block;}
    That should work for both IE & Netscape (6 & 7 respectively).

  4. #3
    Member Wozza's Avatar
    Join Date
    Mar 2003
    Posts
    53
    Member #
    915
    Yay it works good

    Thanks heaps - fast and good help, I think I'll be comming back to this forum
    Nothing to see here

  5. #4
    Senior Member Delerium's Avatar
    Join Date
    Jan 2003
    Location
    Toronto, Ontario, Canada
    Posts
    193
    Member #
    462
    No probs - glad to help :classic:


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:45 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com