change color of cells at hover

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default change color of cells at hover

    I want to build a navigation , without graphics, where the cell containing the
    link changes color when hovered over. I have applied a css style to the cell
    for the initial color but can not figure how to make the hover take effect.
    Please help

    fister Guest

  2. Similar Questions and Discussions

    1. Can't change hover tag in CSS
      Just got rolling with CSS. So far its great but I'm snagged on something dumb for sure. I'm simply trying to change my <a> link hover to...
    2. Link color doesn't change on hover
      hi;) , I am having problems with color change of links on rollover, so I'm here for some help. Ok, I have some links which are in a frame. First...
    3. Why doesn't the CssClass property change the visual display of my datagrid cells?
      Why doesn't the CssClass property change the visual display of my datagrid cells? Thanks for any insights. I'm primarily a developer of .NET...
    4. links in text field - change color on hover
      is there a way to make the links in a text field have a css equivalent of a:hover?
    5. Cocoa: NSMatrix, change number of cells, can't target new ones
      I have an NSMatrix of buttons. They work fine and the target is called when I click on one of them. I've set it up as just -...
  3. #2

    Default Re: change color of cells at hover

    Check it in another browser.

    The :hover pseudo-class is not supported in Internet Explorer, and by extension Dreamweaver.
    VVebbie Guest

  4. #3

    Default Re: change color of cells at hover

    I created a syle named .nav_cell and applied it to the cell, then made style
    ..nav_cell:hover for the hover and just changed the color. it does not display
    in any browser. i am obviously doing this wrong. please advise

    fister Guest

  5. #4

    Default Re: change color of cells at hover

    Does your hover definition come before or after the normal definition in the
    code?

    If it comes before, the .nav_cell definition still applies to the element, and
    your color is overwritten back to normal before the hover takes effect (if you
    want to think of it that way). CSS rules are applied in order.

    VVebbie Guest

  6. #5

    Default Re: change color of cells at hover

    that is good info because i did not know that either, however they are listed in proper order- i'm sending you a jpg to see the order
    fister Guest

  7. #6

    Default Re: change color of cells at hover

    that is good info because i did not know that either, however they are listed in proper order- i'd send you a screen shot but i don't see away to attach anything here.
    fister Guest

  8. #7

    Default Re: change color of cells at hover

    Ok, I just tried to do a quick test here, and I encountered a problem...

    Do you have a doctype declaration? I wasn't able to get it to work using JUST
    a class without one, and i'd never experienced this before.

    It should look something like this in the first line of the page:


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

    VVebbie Guest

  9. #8

    Default Re: change color of cells at hover

    you are over my head at this point...do you want me to copy paste your code into my page?
    fister Guest

  10. #9

    Default Re: change color of cells at hover

    I'm just commenting on the fact that I couldn't get my example to work without
    the doctype declaration.

    I really can't give you much more advice without looking at the code.

    The following is the complete, working example:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

    <html>
    <head>
    <style>
    .hovar
    {
    background-color:blue;
    }
    .hovar:hover
    {
    background-color:red;
    }
    </style>
    </head>
    <body>
    <div class="hovar">text</div>
    <table>
    <tr>
    <td class="hovar">table</td>
    </tr>
    </table>
    </body>
    </html>

    VVebbie Guest

  11. #10

    Default Re: change color of cells at hover

    Yeah! that is exactly what I am trying to do! Now, if I can figure out what you did I'll be good to go. Thanks so much!
    fister Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139