473,473 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Odd css button behavior

In FF 2 and Netscape 7.2 this button works exactly as desired, and that
is hovering anywhere over the button activates the hover action. But in
IE 6, only mousing over the text of the link activates the hover. Can
you see what I'm missing? It's making me crazy!!

TIA

Tom

The html:

<div id="navLeft">
<ul id="navLeftmenu">
<li><a class="navLinkLeft" href="index.html">Home</a></li>
<li><a class="navLinkLeft" href="about.html">About</a></li>
</ul>
</div>

The css:
#navLeftmenu a.navLinkLeft:visited{
color: #FFFFFF;
text-decoration:underline;
background-color: #000055;
border-color: #0000FF;
border-style: outset;
border-size: 3px;
display:block;
}

#navLeftmenu a.navLinkLeft:link{
color: #FFFFFF;
text-decoration:underline;
background-color: #000055;
border-color: #0000FF;
border-style: outset;
border-size: 3px;
display:block;
}

#navLeftmenu a.navLinkLeft:hover{
color: #FFFFFF;
text-decoration: none;
background-color: #0000DD;
border-style: inset;
border-color: #000099;
border-size: 3px;
display:block;
}

#navLeftmenu a.navLinkLeft:active{
color: #FFFFFF;
text-decoration: none;
background-color: #0000DD;
border-style: inset;
border-color: #000099;
border-size: 3px;
display:block;
}

#navLeftmenu li a.navLinkLeft:visited{
list-style-type:none;
display:block;
padding:3px 0px 3px 6px;

}

#navLeftmenu li a.navLinkLeft:link{
list-style-type:none;
display:block;
padding:3px 0px 3px 6px;

}

#navLeftmenu li a.navLinkLeft:hover{
list-style-type:none;
display:block;
padding:3px 0px 3px 6px;

}

#navLeftmenu li a.navLinkLeft:active{
list-style-type:none;
display:block;
padding:3px 0px 3px 6px;

}
May 21 '07 #1
4 2940
JD
tomb wrote:
In FF 2 and Netscape 7.2 this button works exactly as desired, and that
is hovering anywhere over the button activates the hover action. But in
IE 6, only mousing over the text of the link activates the hover. Can
you see what I'm missing? It's making me crazy!!
<snip>

Your code example works here. Can you post a URL instead?
May 26 '07 #2
JD,

Thanks for your input. Here is the sample page:

http://www.technetcenter.com/declarationonline/

I would really like to have it respond in IE the same way as FireFox,
but I just can't get it to do that. In IE, I have to hover the text for
the button to respond.

Thanks for anything you can point out.

Tom

JD wrote:
tomb wrote:
>In FF 2 and Netscape 7.2 this button works exactly as desired, and
that is hovering anywhere over the button activates the hover action.
But in IE 6, only mousing over the text of the link activates the
hover. Can you see what I'm missing? It's making me crazy!!

<snip>

Your code example works here. Can you post a URL instead?
May 27 '07 #3
JD
tomb wrote:
JD,

Thanks for your input. Here is the sample page:

http://www.technetcenter.com/declarationonline/

I would really like to have it respond in IE the same way as FireFox,
but I just can't get it to do that. In IE, I have to hover the text for
the button to respond.

Thanks for anything you can point out.
In IE5 or IE6, when you display an <aelement as a block in a fixed
width container, only the text portion of the element will be clickable.
To fix this, you need to give the a element an explicit width.
May 27 '07 #4
You, Sir, are a genius! Thanks so much.

Tom

JD wrote:
tomb wrote:
>JD,

Thanks for your input. Here is the sample page:

http://www.technetcenter.com/declarationonline/

I would really like to have it respond in IE the same way as FireFox,
but I just can't get it to do that. In IE, I have to hover the text
for the button to respond.

Thanks for anything you can point out.

In IE5 or IE6, when you display an <aelement as a block in a fixed
width container, only the text portion of the element will be
clickable. To fix this, you need to give the a element an explicit width.
May 27 '07 #5

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

Similar topics

12
by: Javier | last post by:
Hello, I'm very new in this forum and as I have the following problem, the website is in http://new.vanara.com ----------------------------------------------------------------------------...
1
by: Stanimir Stamenkov | last post by:
Here's an example: <form action="bogus" method="post"> <p> <a href="prev.cgi"><input type="submit" name="prev" value="< Back"></a> <a href="next.cgi"><input type="submit" name="next"...
3
by: Jason Kyle Baginski | last post by:
Here's a little test app to demonstrate a problem I'm having. It creates four buttons, each one with the different FlatStyle types available. Three of them behave exactly the same way(and the...
6
by: GD | last post by:
Hi, I wonder how to disable the "submit" behavior of a button. What I want is to assign values to dynamically added user controls without page postback. Problem: dynamically created control can...
29
by: Tom wilson | last post by:
I can't believe this is such an impossibility... I have an asp.net page. It accepts data through on form fields and includes a submit button. The page loads up and you fill out some stuff. ...
3
by: Amelyan | last post by:
When we want radio button to belong to a group name we say, radio1.GroupName="GroupA". In this case, radio1 will be unselected if another radio button is selected in "GroupA". Is there a way...
3
by: JV | last post by:
This is for anyone who has tackled the accessibility issue on their web site (and if you haven't, I bet you will in future). Apparently the asp:button control always renders as '<input...
4
by: Patrick Flaherty | last post by:
Hi, Experienced programmer but new to PHP. Moreover I'm to use PHP with Xoops on top (this adds object orientation?). I don't seem to find a xoops Usenet group? Whatever the case (and...
3
by: Harry Haller | last post by:
I have a radio button group. When the page loads none of them are selected. OnClick selects ONE and clicking another one selects a different one - this is normal behavior. I want to modify it so...
7
by: Marcolino | last post by:
Hi all, I need to add a custom button to title bar on a form in addition of a standard button. (Minimize/Maximize, close etc.) I need also to handle OnClick event of this button. I looked around...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.