473,699 Members | 2,834 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Menu query

I have a text based and css controlled horizontal menu where on hover the
text and "button/cell" background colour change.
Fine so far, the background colour fills the button.
However if one of the menu buttons has two lines of text, while the hover
background colour does fill that menu button, the other buttons, which are
now in taller buttons, only have a strip of hover background colour which
does not extend to the top and bottom of the button.
Is there a way of dealing with this so that the hover colour fills the
button regardless of the height of the container?
Or some alternative method of achieving the same result.
I would expect that many have encountered this problem, but it is a first
for me.
Thanks for any help/ideas.
Brian Tozer
May 6 '06 #1
3 1470

"KiwiBrian" <br******@ihug. co.nz> wrote in message
news:e3******** **@lust.ihug.co .nz...
I have a text based and css controlled horizontal menu where on hover the
text and "button/cell" background colour change.
Fine so far, the background colour fills the button.
However if one of the menu buttons has two lines of text, while the hover
background colour does fill that menu button, the other buttons, which are
now in taller buttons, only have a strip of hover background colour which
does not extend to the top and bottom of the button.
Is there a way of dealing with this so that the hover colour fills the
button regardless of the height of the container?
Or some alternative method of achieving the same result.
I would expect that many have encountered this problem, but it is a first
for me.
Thanks for any help/ideas.
Brian Tozer

Oops, here is my link control CSS

..link1 A {
font-family: arial;
font-size: 13px;
font-weight: bold;
background-color: #310031;
color: #F4DCA2;
text-decoration: none;
display: block;
width: 100%;
}

..link1 A:hover {
color: #000000;
background-color: #CC9933;
}
May 6 '06 #2
On Sat, 6 May 2006 18:46:20 +1200 KiwiBrian <br******@ihug. co.nz> wrote:
|
| "KiwiBrian" <br******@ihug. co.nz> wrote in message
| news:e3******** **@lust.ihug.co .nz...
|>I have a text based and css controlled horizontal menu where on hover the
|>text and "button/cell" background colour change.
|> Fine so far, the background colour fills the button.
|> However if one of the menu buttons has two lines of text, while the hover
|> background colour does fill that menu button, the other buttons, which are
|> now in taller buttons, only have a strip of hover background colour which
|> does not extend to the top and bottom of the button.
|> Is there a way of dealing with this so that the hover colour fills the
|> button regardless of the height of the container?
|> Or some alternative method of achieving the same result.
|> I would expect that many have encountered this problem, but it is a first
|> for me.
|> Thanks for any help/ideas.
|> Brian Tozer
|
|
| Oops, here is my link control CSS
|
| .link1 A {
| font-family: arial;
| font-size: 13px;
| font-weight: bold;
| background-color: #310031;
| color: #F4DCA2;
| text-decoration: none;
| display: block;
| width: 100%;
| }
|
| .link1 A:hover {
| color: #000000;
| background-color: #CC9933;
| }

That's because the A element itself is not filling the box when the box is
forced larger because another button has 2 lines of text. Move the pointer
to the area above or below that strip that isn't being colored and you will
see that the color reverts back even though the pointer is still inside the
box you are making a button of.

You would have to apply these properties to the box itself. But since IE
does not support :hover for other than an A element (so I am told, and at
least for IE 6), it won't work right in IE unless a way can be found to do
a box using an A element. I tried that for another idea I was working on
a few days ago and it didn't work. But maybe your simpler case might.

What is the HTML element you're using to surround each button and what CSS
do you have for that?

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 6 '06 #3
Hi Phil.
Thanks for your help.
I solved it by adding 8 pixels of vertical padding to the pseudoclass
applied to the links with the unwrapped (one line) text entries.
73s
Brian ex ZL1ACE and ZL2BV

<ph************ **@ipal.net> wrote in message
news:e3******** *@news3.newsguy .com...
On Sat, 6 May 2006 18:46:20 +1200 KiwiBrian <br******@ihug. co.nz> wrote:
|
| "KiwiBrian" <br******@ihug. co.nz> wrote in message
| news:e3******** **@lust.ihug.co .nz...
|>I have a text based and css controlled horizontal menu where on hover
the
|>text and "button/cell" background colour change.
|> Fine so far, the background colour fills the button.
|> However if one of the menu buttons has two lines of text, while the
hover
|> background colour does fill that menu button, the other buttons, which
are
|> now in taller buttons, only have a strip of hover background colour
which
|> does not extend to the top and bottom of the button.
|> Is there a way of dealing with this so that the hover colour fills the
|> button regardless of the height of the container?
|> Or some alternative method of achieving the same result.
|> I would expect that many have encountered this problem, but it is a
first
|> for me.
|> Thanks for any help/ideas.
|> Brian Tozer
|
|
| Oops, here is my link control CSS
|
| .link1 A {
| font-family: arial;
| font-size: 13px;
| font-weight: bold;
| background-color: #310031;
| color: #F4DCA2;
| text-decoration: none;
| display: block;
| width: 100%;
| }
|
| .link1 A:hover {
| color: #000000;
| background-color: #CC9933;
| }

That's because the A element itself is not filling the box when the box is
forced larger because another button has 2 lines of text. Move the
pointer
to the area above or below that strip that isn't being colored and you
will
see that the color reverts back even though the pointer is still inside
the
box you are making a button of.

You would have to apply these properties to the box itself. But since IE
does not support :hover for other than an A element (so I am told, and at
least for IE 6), it won't work right in IE unless a way can be found to do
a box using an A element. I tried that for another idea I was working on
a few days ago and it didn't work. But maybe your simpler case might.

What is the HTML element you're using to surround each button and what CSS
do you have for that?

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/
http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/
http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------


May 7 '06 #4

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

Similar topics

4
8473
by: dr. zoidberg | last post by:
Hello, I'm creating simple menu. MySQL: +----+-----+----------------------+ | id | sid | Title | +----+-----+----------------------+ | 1 | 0 | Main Menu 1 | 2 | 0 | Main Menu 2 | 3 | 1 | SubMenu 1 of menu 1
2
3187
by: Jorntk | last post by:
How can I make a drop down menu that are dynamically generated base on the value selected in another drop down menu? values in both menu will need to be from mysql query.
3
3652
by: hmiller | last post by:
Hey everyone, I am having a hell of a time trying to set this menu system up. Here's what I'm trying to do. Combo Box One; is populated by names under properties "row source" "Phase 1" through "Phase 10" (there are 10 Phases I want to sort from) Once the phase has been selected a second combo box would populate.
9
7875
by: john | last post by:
In Paradox I was able to create popup menu's in which some of the items had popup menu's themselves. I've looked for threads on popup menu's and access but I can't find how to make a simple popup menu. The popup menu I want to make should appear when I rightclick a button on my form. A user's choice should do some action. Can someone point me in the right direction? thanks, john
2
5250
by: Boujii | last post by:
Greetings, I have been attempting to make a drop down menu of countries. From this menu I wish to create a variable in order to INPUT into mysql database. I have no trouble making the drop down menu, but I am unable to store a variable for it. Here is a rough copy of what I am making: <html> <head> <title>Add New MySQL User</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head>
3
3354
by: php_mysql_beginer911 | last post by:
Hi am not very good in php so looking for someone who could give some suggections ... i am trying to make a Menu where i can make Sub Menu and also i can make any number of sub Menu under any Sub Menu .. If i have only one level Menu And Sub Menu-- i can make a table with id and parent id where parent id will be the Menu id for Sub Menu that means ID And PARENT_ID fields are important but if make multiple sub menus of ny number how i...
3
2164
by: SQLjunky | last post by:
Hello, Contrary to what my screen name indicates, i'm actually quite new to SQL. Having said that, I'll get right into my problem. I'm trying to query an mssql database to return to the value that the user inputs through a drop-down menu in the databases GUI front-end (bugzilla actually). For example, a product is selected in a drop-down menu, and, depending on the product chosen, a second drop-down menu becomes active, containing a list...
3
5047
by: Poggs | last post by:
Hi everyone, I used the pattern for Shell Extensions for Context menu from Dino Esposito's article. However I implemented it in more than one application and it seems that those two right click functionalities cannot work together. void IContextMenu.InvokeCommand (IntPtr pici) I put more debugging information and I noticed that the two assemblies are using a common value. I haved changed their namespaces and guids to be different but...
4
6497
by: TechnoAtif | last post by:
Hi ALL I have entered some array values using checkboxes into mysql database through a form. Next iam creating a searchpage where all those cateogories inserted through checkboxes has to be retrieved using list/menu box. When i check only a single checkbox to insert the checked category ,selecting that category through list box gives out the entire data of the user corresponding to that category. However when i check multiple checkboxes and...
0
8685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9171
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8880
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6532
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4373
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2342
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.