473,385 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Proper way to do hovers?

Hi,

I have this table cell

<td class="contextMenu"</td>

and then this definition in my stylesheet

..contextMenu {
width: 16px;
height: 16px;
background-image:url('../images/menu_arrow.JPG');
cursor: pointer;
}

..contextMenu:hover {
width: 16px;
height: 16px;
background-image:url('../images/menu_arrow_hover.JPG');
cursor: pointer;
}

But, as you can probably guess, on PC Firefox, when I move my cursor
over the table cell, the background graphic does not change. What's
hte proper way to make the background image appear? I have verified
the path is correct.

Thanks, - Dave

Oct 15 '07 #1
6 1625
On 2007-10-15, la***********@zipmail.com <la***********@zipmail.comwrote:
Hi,

I have this table cell

<td class="contextMenu"</td>

and then this definition in my stylesheet

.contextMenu {
width: 16px;
height: 16px;
background-image:url('../images/menu_arrow.JPG');
cursor: pointer;
}

.contextMenu:hover {
width: 16px;
height: 16px;
background-image:url('../images/menu_arrow_hover.JPG');
cursor: pointer;
}

But, as you can probably guess, on PC Firefox, when I move my cursor
over the table cell, the background graphic does not change. What's
hte proper way to make the background image appear? I have verified
the path is correct.
You're probably not using the strict doctype. As François discovered the
other day, :hover doesn't work in Firefox quirks mode.

Put this at the top of each HTML file, first thing:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
Oct 15 '07 #2
On Mon, 15 Oct 2007 23:35:54 +0200, Ben C <sp******@spam.eggswrote:
....
Content-Type: text/html; charset=UTF-8
---------------------^^^^
Man, that header f*ks up the display here....

--
Rik Wasmus
Oct 16 '07 #3
On 2007-10-16, Rik Wasmus <lu************@hotmail.comwrote:
On Mon, 15 Oct 2007 23:35:54 +0200, Ben C <sp******@spam.eggswrote:
...
>Content-Type: text/html; charset=UTF-8
---------------------^^^^
Man, that header f*ks up the display here....
Yes I got that wrong, I meant text/plain, but realized my mistake too
late.

I was using the name "François" as an excuse to test UTF-8 posting.
Oct 16 '07 #4
On Tue, 16 Oct 2007 16:51:26 +0200, Ben C <sp******@spam.eggswrote:
On 2007-10-16, Rik Wasmus <lu************@hotmail.comwrote:
>On Mon, 15 Oct 2007 23:35:54 +0200, Ben C <sp******@spam.eggswrote:
...
>>Content-Type: text/html; charset=UTF-8
---------------------^^^^
Man, that header f*ks up the display here....

Yes I got that wrong, I meant text/plain, but realized my mistake too
late.

I was using the name "François" as an excuse to test UTF-8 posting.
OK, as long as it's not some weird client setting :)

(BTW: I saw 2 content-type headers, this one was followed by Content-Type:
text/plain; charset=iso-8859-1, so regardless all bets about what it was
going to do anywhere were off.. Weird opera remembered the text/html but
seems to have obeyed the iso-8859-1)
--
Rik Wasmus
Oct 16 '07 #5
On 2007-10-16, Rik Wasmus <lu************@hotmail.comwrote:
On Tue, 16 Oct 2007 16:51:26 +0200, Ben C <sp******@spam.eggswrote:
>On 2007-10-16, Rik Wasmus <lu************@hotmail.comwrote:
>>On Mon, 15 Oct 2007 23:35:54 +0200, Ben C <sp******@spam.eggswrote:
...
Content-Type: text/html; charset=UTF-8
---------------------^^^^
Man, that header f*ks up the display here....

Yes I got that wrong, I meant text/plain, but realized my mistake too
late.

I was using the name "François" as an excuse to test UTF-8 posting.

OK, as long as it's not some weird client setting :)

(BTW: I saw 2 content-type headers, this one was followed by Content-Type:
text/plain; charset=iso-8859-1, so regardless all bets about what it was
going to do anywhere were off.. Weird opera remembered the text/html but
seems to have obeyed the iso-8859-1)
Thanks for the info! Looks like my newsreader/writer was putting the
ISO-8859-1 in for itself, which is its default. This is why I am
conducting such tests.

I shall now go and RTFM like I should have done in the first place...
Oct 16 '07 #6
Ben C wrote:
Thanks for the info! Looks like my newsreader/writer was putting the
ISO-8859-1 in for itself, which is its default. This is why I am
conducting such tests.

I shall now go and RTFM like I should have done in the first place...
After doing so, keep in mind the group news.software.readers. Small and
manageable and contians slrn gurus (and the author). See you there if
you pick it up. (To others: it's not specific to slrn, though.)

--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org
Oct 16 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kevin | last post by:
I am currently importing data into Access 2002 from 3 Sybase ASA 7.0 databases over a network. At this time I am using a ODBC System DSN connection using the proper ASA 7 driver. I would like to...
1
by: RC | last post by:
I have an Access 2002 database with many tables and forms (but just to keep things simple, let's say the DB has one Table "Table1" and one Form "Form1"). I have managed to cobble together so much...
0
by: bj | last post by:
hello is there any chance to get proper char width for class derived from user control - im working over text editing control, so i need proper width of every character for currently selected...
4
by: Just Me | last post by:
I want to make a small window popup when the mouse hovers. I've looked in the Help but can't find any info (probably can't think of a good keyword) Are ToolTips control used for that? Any...
1
by: Bart Lateur | last post by:
I'd like to replace the text content of a subdiv by "...", except when the mouse is hovering either above it, or above another subdiv of the same parent. Something like: <div class="parent">...
0
by: yogarajan | last post by:
hi all i need proper alignment my treeview looks like <checkbox>Fruits(parent)-134 <checkbox>Mango(child)-45 <checkbox>Orange(child)-45 ...
5
by: kimiraikkonen | last post by:
Hi, I couldn't find a necessary class which shows when mouse hovers on a link in Webbrowser control. Think of there's a status bar(text), when mouse comes on a link, the URL must be shown in...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.