johnsy32,
The buttons did not change position.
Any other idea?
Main Topics
Browse All TopicsHere is the CSS and HTML that we use for our top navigation bar.
We need the buttons in this top navigation bar to be centered.
/* Beginning of Top Navigation Bar */
.topnav
{
width: 97%;
margin-left: 12px;
margin-bottom: 15px;
height: 42px;
padding-left: 5px;
min-width: 518px; /* keeps the navigator on one line */
}
ul.topmenu
{
display: block;
margin: 0px;
padding-top: 0px;
padding-bottom: 0px;
padding-left: 65px; /* moves buttons hortizontally */
padding-right: 0px;
height: 42px;
list-style-type: none;
text-align: center;
background: url("../web/images/global_
}
ul.topmenu li
{
float: left;
margin-left: 0px; /* space between buttons */
padding: 0px;
display: block;
line-height: 42px !important;
}
ul.topmenu li a
{
background: url("../web/images/global_
display: block;
font: bold 12px verdana, sans-serif;
color: #FFFFFF;
padding: 14px 6px 14px 4px;
border-right: 1px solid #016394;
border-left: 1px solid #5FABE7;
text-decoration: none;
white-space: nowrap;
}
ul.topmenu li a:hover
{
text-decoration: none;
color: #000000;
}
ul.topmenu li img
{
vertical-align: top;
}
html:
<div class="topnav">
<img width="15" height="42" alt="" align="left" src="web/images/global_bar
<img width="14" height="42" alt="" align="right" src="web/images/global_bar
<ul class="topmenu">
<li><a href="monitoring.asp" title="...">Button 1</a></li>
<li><a href="systems.asp" title="..">Button 2</a></li>
<li><a href="phone-service.asp" title="...">Button 3</a></li>
<li><a href="products.asp" title="...">Button 4</a></li>
<li><a href="cctv.asp" title="...">Button 5</a></li>
</ul>
</div>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I am using IE8 and FF 3.5 as wll.
Could it be how the navigation bar is called?
<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table1">
<tr>
<td colspan="2"><!--webbot bot="Include" U-Include="topnavigationba
</tr>
Here is a link to the page.
http://www.topsecurityinc.
The top blue bar is the one we need the buttons centered on.
Business Accounts
Answer for Membership
by: johnsy32Posted on 2009-11-07 at 15:02:16ID: 25768493
I've added a 'navcontainer' and a 'navwrapper' div, the container centers everything inside it. The wrapper has a fixed width, which is larger than the width of all menu items, then this gets centered on the page.
I hate floats lol.
Please see the code below...
Select allOpen in new window