473,396 Members | 1,773 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,396 software developers and data experts.

CSS menu

I have a CSS menu that looks a lot like the navigation menu at L.L.
Bean. What I want to do is make an effect like the one at Microsoft's
website where you go over a link and it makes a box around it that
covers the height of the link but the width of the table not the width
of just the link. How can I get that effect in CSS? Whenever I try to
do a border with padding it doesn't work. Here is my CSS so far
.NavBody {
margin: 0px;
padding: 0 0 0 0;
}
.NavHeaderTD {
background: #6699FF;
}
.NavContentTD {
background: #66CCFF;
}
div.NavHeaderDIV {
padding: 4px 4px 4px 4px;
font-size:10pt;
font-weight: bold;
text-align: center;
text-transform: uppercase;
}
div.NavLinkDIV {
margin: 1px 0px;
padding-right: 5px;

}
div.NavLinksDIV {
margin-left: 13px;
}
a.NavLinkA:link, a.NavLinkA:visited {
color: #000000;
text-decoration: none;
}
a.NavLinkA:hover {
border: solid 1px #000000;
background-color: #6666FF;
color: #000000;
text-decoration: none;
}
Jul 20 '05 #1
3 2162
Els
Mark Constant wrote:
I have a CSS menu that looks a lot like the navigation menu at L.L.
Bean. What I want to do is make an effect like the one at Microsoft's
website where you go over a link and it makes a box around it that
covers the height of the link but the width of the table not the width
of just the link. How can I get that effect in CSS? Whenever I try to
do a border with padding it doesn't work. Here is my CSS so far


[snip css]

Difficult to see what happens without a url, and I didn't
feel like guessing your page's html code, so here's for you
to test: add "display:block" to the links, and maybe
"width:100%" will help even further.

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #2

"Mark Constant" <co*******@mix-net.net> wrote in message
news:ce**************************@posting.google.c om...
I have a CSS menu that looks a lot like the navigation menu at L.L.
Bean. What I want to do is make an effect like the one at Microsoft's
website where you go over a link and it makes a box around it that
covers the height of the link but the width of the table not the width
of just the link. How can I get that effect in CSS?


You can use :hover with whatever class you assign to the blocks in the menu.
That won't work in IE, though. If you examine what Microsoft does, it uses a
behavior library (an .htc file) that is referenced in /homepage/ms.css, and
*that* won't work in any *other* browser, since it's a Microsoft proprietary
feature. Bring up the Microsoft home page in Mozilla, for example, and
you'll see that it looks very different there.

Jul 20 '05 #3

"Mark Constant" wrote...
I have a CSS menu that looks a lot like the navigation menu at L.L.
Bean. What I want to do is make an effect like the one at Microsoft's
website where you go over a link and it makes a box around it that
covers the height of the link but the width of the table not the width
of just the link. How can I get that effect in CSS?


Are you looking for something like the links on the left side of this page?
http://matroska.org

It was done in CSS I believe.
Pamel
Jul 20 '05 #4

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

Similar topics

1
by: Macamba | last post by:
Hi all, I am currently developing a website for a voluntary organisation. It is my first step in website development. The dynamic menu I developed has some bugs, which I addressed in another...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
8
by: Dennis C. Drumm | last post by:
Is there a way to modify the standard context menu shown when someone right clicks in a windows text box and that would work for all open windows applications? The standard context menu for...
1
by: Anthony | last post by:
Below is a script I found at http://javascript.internet.com/ for a cascading menu. The script works great but there is one thing that I would like modified. BecauseI am just learning javascript,...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
3
by: Lady Gray | last post by:
Link to site: http://kukuwhelkrevolution.artistyandprose.com/Index/ Here's the HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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,...
0
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...
0
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,...

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.