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 6 of 6

Thread: Psuedo problems

  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    58
    Member #
    5497
    My psuedo classes aren't working. Am I doing this right?

    -- STYLESHEET --
    td.infomenu
    {
    display: inline;
    border-left: none;
    border: 1px #D5DBE1 solid;
    background: EAECF8;
    border-bottom: 1px #D5DBE1 solid;

    margin-right: 3;
    padding-left: 3;
    padding-right: 3;

    font-family: Georgia;
    font-size: 11;
    }

    td.infomenu: hover
    {
    border: 1px #FFF solid;
    background: D5DBE1;
    cursor: 'hand';
    }

    -- HTML FILE --
    <td class="infomenu">FAQ</td>

    Am I understanding Psuedo wrong?

  2.  

  3. #2
    Senior Member Maverick's Avatar
    Join Date
    Sep 2003
    Location
    Hoboken, NJ
    Posts
    351
    Member #
    3253
    Well, technically no, but IE, which I assume you are testing this CSS with, does not support the use of the :hover pseudo selector for any html element other than "a" (links). This should work in browser such as FireFox, but I am not completely sure.
    www.stevenspoker.com
    "You can't lose what you don't put in the middle, ... but you can't win much either." -Mike McDermott (Rounders)

  4. #3
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    The best thing you can do to solve this problem is use a little cross-browser JScripting in conjunction with your CSS.

    A very simple example can be found here:

    http://wsabstract.com/javatutors/crossmenu.shtml

    I usually end up putting mine into a JS file, since it allows me to more easily modify multiple properties and keeps my code a bit cleaner, but that's up to you.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  5. #4
    Member
    Join Date
    Apr 2004
    Posts
    58
    Member #
    5497
    I knew I could, I was just trying to do it with CSS, because it was much cleaner.

  6. #5
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Cleaner, but not compatible. As I keep saying, use what works, not what's "correct".

  7. #6
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    Hey hey now, using javascript is "correct" Just not clean.
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site


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 09:28 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com