473,606 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

When I hover over links in navigation bar, they move to the right.

2 New Member
I have a css style sheet and onmouseover in my html code, but something isn't right as the links move when hovering over them.
Mar 20 '15 #1
4 4941
Claus Mygind
571 Contributor
Hard to help you when you don't show your code.
Mar 20 '15 #2
4760marilyn
2 New Member
Sorry, I thought I had included my code. Here it is

Expand|Select|Wrap|Line Numbers
  1.  
  2. <TD class=menuNormal onmouseover="expand(this);" onmouseout="collapse(this);" width=130 align=left>
  3.      <p><b>Vida de Mulher</b></p>
  4.       <DIV class=menuNormal>
  5.       <TABLE class=menu width=130>
  6.                <TR>
  7.           <TD class=menuNormal><A class=menuitem href="aborto.htm">Aborto
  8.           </A></TD></TR>
  9.         <TR>
  10.           <TD class=menuNormal><A class=menuitem href="anorexia.htm">Anorexia
  11.           </A></TD></TR>
  12.         <TR>
  13.           <TD class=menuNormal><A class=menuitem href="beleza.htm">Beleza de mulher
  14.           </A></TD></TR>
  15.         </TABLE></DIV></TD>
  16.  
  17. and the css menu
  18.  
  19. table.navbar
  20. {font-size: 11pt;
  21. margin: 0px;
  22. padding: 0px; 
  23. border: 0px; 
  24. /*font-weight: bold;*/}
  25.  
  26. table.menu
  27. {font-size: 11pt;
  28. margin: 5px;
  29. padding: 0px;
  30. /*font-weight: bold;*/}
  31.  
  32. td.menuNormal
  33. {padding: 0px;
  34. color: #003399;
  35. /*font-weight: bold;*/
  36. vertical-align: top;
  37. background-color: #f6f6f6;}
  38.  
  39. td.menuHover
  40. {padding: 0px;
  41. color:#003399;
  42. width: 112px;
  43. /*font-weight: bold;*/
  44. vertical-align: top;
  45. /*remove the following line for drop-down menu with images*/
  46. background-color: lightblue;}
  47.  
  48.  
  49.  
Mar 21 '15 #3
weboutgateway
23 New Member
Your codes is not to accurate.

You can have your navigation as simple as this.
Tips:
Instead of using Table use ul and li and you may use tutorials or even browsing an samples of navigation menus

Check this out.
http://www.noupe.com/essentials/free...tutorials.html
Jul 14 '15 #4
Exequiel
288 Contributor
table is not a good element in creating a navigator, you must use <ul> and <li> element with <a> element. its the best element to create a navigator.
example:
Expand|Select|Wrap|Line Numbers
  1. <ul>
  2.   <li>
  3.     <a href="home.html">HOME</a>
  4.   </li>
  5.   <li>
  6.     <a href="home.html">PROFILE</a>
  7.   </li>
  8.   <li>
  9.     <a href="home.html">CONTACT</a>
  10.   </li>
  11. </ul>
  12. //DO YOUR CSS DESIGNS
  13.  
Jul 14 '15 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

22
11073
by: Marek Mand | last post by:
How to create a functional *flexible* UL-menu list <div> <ul> <li><a href=""></li> <li><a href=""></li> <li><a href=""></li> </ul> </div> (working in IE, Mozilla1.6, Opera7 (or maybe even in Opera6))
3
1964
by: VB Programmer | last post by:
How do you change the background/fg color of a cell when the mouse is hovered above it? Examples would be nice.
7
27482
by: fredo | last post by:
I've studied Eric Meyer's pure css popups, version two: http://meyerweb.com/eric/css/edge/popups/demo2.html which pops up an image when I roll over a text link. Now I want to pop up a large image when I roll over a thumbnail. I've tried some things, but can't make it work. See here (Warning: adult matter):
6
5844
by: fredo | last post by:
A few days ago, Jim answered (THANK YOU, Jim) my question about how to make an image pop up when an image link is hovered. That discussion is here: http://groups.google.com/group/comp.infosystems.www.authoring.stylesheets/browse_thread/thread/e9a21d6f46ac7168/40b2599e189fce58?hl=en#40b2599e189fce58 Jim's stylesheet made everything work beautifully in FF; and in IE, too. But when I changed his stylesheet to display thumbnails...
4
2468
by: Corey Walker | last post by:
Hello: I am a webmaster for a non-profit organization. I do know some HTML, but I'm by no means an expert. Recently, many pages on our site were redesigned by a professional web designer, who volunteered his time for a one time improvement. Now, I'm trying to add a new page to our site, and make it look consistent by removing and replacing the text in an existing page. However, in the one page the links at the bottom page are centered...
2
1461
by: Eng Teng | last post by:
Where is the part to set when my mouse pointer move to textbox or label or buton it will display text description ? Regards, Tee
6
3911
mikek12004
by: mikek12004 | last post by:
I have a list of links and I want when hover to display a little image (e.g an arrow before them) how can this be done in CSS?
1
1844
by: rizwanrajput | last post by:
Hello everyone, I need help with wordpress. I will show a login box on my main page and if some registered user logs in, I want to show some links/navigation to that person only (not to guests). Is that possible? If yes then how? Please guide me with. Thanks
0
1385
colinod
by: colinod | last post by:
I have an asp/css/html page that i am trying to get to work in ie7 and ie6, problem is i cant test it in ie6. have tried the ie7 mode in ie9 developer tools and the overflow that i have the navigation on the right does not work Worlks fine in all other ie and all other browsers, it just moves over to the right when in ie7 mode. its an ul element that is floated to the right and cant figure out why its doing this Can some one have a...
0
8009
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
8428
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
8078
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
6753
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
5962
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
3964
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2442
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
1548
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1285
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.