473,651 Members | 3,093 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make entire navigation menu item selectable

Hi,

I used a template for my first Web application. I made a few changes
to the layer thru its css file. The problem that has been vexing me
is the vertical spacing for each navigation menu item. If I do not
set the verticalpadding property, the items are rendered too close to
one another. However, when I set the verticalpadding property, I get
the spacing that I want but the selectable area within each item is
the exact height of the text size. The padding space above and below
each item are not selectable. I want to make it so when the user
hover the mouse pointer over each menu item, the entire item becomes
selectable. Right now, only the text area is selectable and not the
padding above and below it. Can someone please help me?

Thank you all,
Jon

Jul 27 '07 #1
1 2765
the easiest is to use an background image (hint: should only be 1px wide).

-- bruce (sqlwork.com)

Homer wrote:
Hi,

I used a template for my first Web application. I made a few changes
to the layer thru its css file. The problem that has been vexing me
is the vertical spacing for each navigation menu item. If I do not
set the verticalpadding property, the items are rendered too close to
one another. However, when I set the verticalpadding property, I get
the spacing that I want but the selectable area within each item is
the exact height of the text size. The padding space above and below
each item are not selectable. I want to make it so when the user
hover the mouse pointer over each menu item, the entire item becomes
selectable. Right now, only the text area is selectable and not the
padding above and below it. Can someone please help me?

Thank you all,
Jon
Jul 27 '07 #2

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

Similar topics

3
2376
by: eternalD3 | last post by:
Hi, I have a problem to get this working on Opera 7.x+. This does not need to work on older Opera browsers There are problems on rendering the sub-level navigation. It aligns right on Firefox and IE 6. Sometimes there are also some problems on IE 5 or IE 5.5. I would like the navigation to work like this:
0
2123
by: Veli-Pekka Tätilä | last post by:
Hi, My first post here. I've found some serious accessibility flaws in the Python 2.4 docs and wish they could be rectified over time. I'm very new to Python and initially contacted docs at python org, However, I haven't gotten a reply for a week or so, and figured out I could post here for a larger audience, then. Original message follows: Hello,
0
1130
by: Darren Carter | last post by:
I am trying to figure out how to create a static menu on a master page that has the top level navigation in a horizontal layout, and the corresponding second level of navigation on another horizontal line beneath it. When a top level nav item is selected, a "selected" style is applied and its child nodes are displayed on the second horizontal level. When a child node is clicked, there is also a style applied to it, however, the style that...
1
1333
by: m_hansford | last post by:
I have a Menu control that populates from a SiteMap file. It's on my Master Page and usually loads content pages. I've got 2 problems at the moment: - Some of my menu items point to an external web site or to a PDF document instead of just loading the next internal page. I want these external links to open in a new browser window while retaining the default target of _self. How can I do this? The only stuff I've seen so far is based...
1
1167
by: McGeeky | last post by:
Hi. I am after a site navigation control that works as follows: A list of menu items displayed vertically. Each menu item can have child menu items. Only the currently select top level menu item will have its children menu items display. E.g. The menu below shows the <About Usmenu item is selected. So its two children are shown. <About Us>
0
1455
by: Wayne Erfling | last post by:
I put in the code below to disable self links in a menu control in a "master" page. It works properly if the top-level menu item has no children, but both ..Selected = false and .NavigateUrl = null are ignored if the top-level menu item has nested (child) menu items. This looks like a bug to me, and the documentation for .Selected suggests that it should be possible to disable a higher-level item while leaving the lower levels active. ...
1
2853
by: Harlan Messinger | last post by:
I'm sure this is covered on the Web, but I can't figure out a sufficiently narrow Google query: Suppose I have a hierarchical website structure Page 1 Page 1a Page 1b Page 1b1 Page 1b2 Page 1b3
0
1440
by: nomad | last post by:
Hi, I have the menu below. I was wondering if it was possible to highlight the selected child menu item when the user hovers over it? <span id="MainMenuHolder" onmenuitemclick="OnClick" style="width:100%; clear:both;"> <asp:Menu ID="MainMenu" runat="server" Orientation="Horizontal" BackColor="#E3EAEB" DynamicHorizontalOffset="2" Font-
7
1429
by: Mel | last post by:
What control do I use for a menu on a web page? How do I add a check box to an menu item? I have a menu called Chart and beneath it I have a menu item called Publish. I want to display a checked check box when Publish is selected and an unchecked box when it's selected again. Can anyone point me in the right direction? (using asp.net 2.0, vb.net 2005)
0
8367
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
8811
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
8703
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...
1
8467
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
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
4145
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...
1
2703
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1914
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.