This should work in Firefox on both Macintosh and Windows, I’m
surprised if you aren’t seeing the effect. There may be another style
that is being given a higher priority than your class. Try adding td
to the mix (add it to the Tag field in the Edit Style dialog, or if
you’re hand-coding this, make your declaration:
td.imgcell { ... }
The larger issue is that it won’t work at all on IE. I know this is
fact on IE6, it may be fixed in 7 but I’m not sure. In any case, it’s
going to be a long time before IE6 is really gone. Ever seen those
Resident Evil movies, with the zombies?
What will work, on every browser, is if you add the effect to the A
tag. A:hover is supported in everything that can connect to the Web.
You will need to remove the padding from your TD and add it to your
A, then set the A to display:block. Then whenever someone rolls over
the A, it will light up the entire cell.
So if your declaration was like this previously:
td.imgcell {
padding: 4px 6px;
border: 1px solid #ccc;
}
td.imgcell:hover {
border: 1px solid #fff;
}
You would make it this:
td.imgcell {
padding: 0;
border: none;
}
td.imgcell a {
display:block;
padding: 4px 6px;
border: 1px solid #ccc;
}
td.imgcell a:hover {
border: 1px solid #fff;
}
And that would get you the same effect, in all browsers. One gotcha
waiting here – this will only work if the link is the only thing in
the cell. Otherwise, your link text will simply take up a single line
within the cell, and all other text will run above and below it. But
this is the basic technique that I use to make HTML menu navigation.
It works very well, and the nice thing about it is that you get a
nice big target for your link, not just the area of the text itself.
Walter
On Feb 11, 2008, at 8:24 AM, hugh wrote:
I have a table of 1 row 4 columns, cell spacing 0, cell padding 4,
border 0. Each cell contains an image/graphic item with an action
link to a larger photo.
I want the cell border of these cells to be outlined white when
rolled over.
I have set up an .imgcell class with a standard and hover state,
declarations thus:
.imgcell {
border:1px solid #999999;
}
.imgcell:hover {
border:1px solid #ffffff;
}
The cells have then been given this class through the ‘extended’
dialogue (cell extended, not row)
The rollover effect works in Safari, but not in Firefox nor IE6.
Draft can be seen at www.shonephotography.com/ras3/filmtv.html -
rollover the left links to get the pics, then roll over the pics -
see the difference in Safari and Firefox.
Any ideas?
thx, Hugh
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options