Hi,
I am new to CSS, but loving it so far. I want to create a table with links in each row, and would like to duplicate the hover effect on background color (changes to a new color when cursor is hovering), like so many javascripts, but have not had any luck. Is this possible, am I wasting my time, or am I making a mistake somewhere?
Thanks,
JBIt's a piece of cake, except in IE. IE doesn't understand hover for any element but anchor tags. However you could try setting the link margins so that they fill up the table cell, and change the background color of the links. I never tried it, but it seems like it might work.Ah, go figure! I was looking at it in IE, instead of my usual Mozilla. I do like the idea of the html margin for IE, however. How does that work? I am limited in my experience with CSS, so bear with me if it is a dumb question. Again, thanks for the help!I forgot to mention padding for the cell would need to be 0Well I don't know how large the cells are so experiment with values for
a { margin: 10px 10px 10px 10px }
That's top, right, bottom, left, margins each set to 10 pixelsthanks! will do!If margin doesn't work, try padding.
I am new to CSS, but loving it so far. I want to create a table with links in each row, and would like to duplicate the hover effect on background color (changes to a new color when cursor is hovering), like so many javascripts, but have not had any luck. Is this possible, am I wasting my time, or am I making a mistake somewhere?
Thanks,
JBIt's a piece of cake, except in IE. IE doesn't understand hover for any element but anchor tags. However you could try setting the link margins so that they fill up the table cell, and change the background color of the links. I never tried it, but it seems like it might work.Ah, go figure! I was looking at it in IE, instead of my usual Mozilla. I do like the idea of the html margin for IE, however. How does that work? I am limited in my experience with CSS, so bear with me if it is a dumb question. Again, thanks for the help!I forgot to mention padding for the cell would need to be 0Well I don't know how large the cells are so experiment with values for
a { margin: 10px 10px 10px 10px }
That's top, right, bottom, left, margins each set to 10 pixelsthanks! will do!If margin doesn't work, try padding.