li - display inline with half pipes - padding issue

http://midvalleydermatology.com/index_test.php

if you look in the top horizontal nav, you'll see that there's more padding to the right of the half pipes than to the left - but the style is this:

.halfPipe{padding:0 2px;}

and the html looks like this:

<li <?php if ($crumb=="home") echo "id=\"currentPage\"";?>><a href="http://midvalleydermatology.com/index.php">Home</a></li><li><span class="halfPipe">|</span></li>
            <li <?php if ($crumb=="staff") echo "id=\"currentPage\"";?>><a href="http://midvalleydermatology.com/staff.php">Our Staff</a></li><li><span class="halfPipe">|</span></li>
            <li <?php if ($crumb=="location") echo "id=\"currentPage\"";?>><a href="http://midvalleydermatology.com/office.php">Location</a></li><li><span class="halfPipe">|</span></li>

i need there to be the same pad on the left and the right - thanks!
#topNav{
width:737px;
float:left;
margin:20px 0 7px 0;
background:#561000;
padding:2px 0 5px 0;
}
	#topNav ul{
	padding-top:5px;
	padding-bottom:5px;
	text-align:center;
	display:inline;
		}
	#topNav li {
	list-style:none;
	color:#FFFFFF;
	font:11px Verdana, Arial, Helvetica, sans-serif;
	display:inline;
	}
	.halfPipe{padding:0 2px;}
	#topNav li a {
	color:white;
	text-decoration:none;
	font-weight:bold;
	}
	#topNav li a:hover {
	color:#fff;
	text-decoration:underline;
	font-weight:bold;
	}
	#topNav #currentPage a{
	text-decoration:underline;
	font-weight:bold;
	}
	#topNav #currentPage a:hover{
	text-decoration:underline;
	font-weight:bold;
	}

Open in new window

phillystyle123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

remorinaCommented:
it's because the default space rendered between lines & <li> elements

try removing the padding entirely and using below example for the halfPipe instead and check how it works for you
<li><span class="halfPipe">&nbsp;|</span>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
remorinaCommented:
Otherwise if you want to eliminate this space, you'll have to use float:left instead of display:inline for the <li> elements and set a suitable height to their container or <UL>
0
phillystyle123Author Commented:
worked perfectly - thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.