
June 22nd, 2012, 09:48 AM
|
|
Registered User
|
|
Join Date: May 2012
Posts: 27
Time spent in forums: 6 h 56 m 13 sec
Reputation Power: 0
|
|
|
Top and bottom clashing with left and right borders
I'd like my navigation bar to have an outer border that is a different color and width from the separators inside. I could do this by have a wrapper div but I'm trying to keep those to a minimum. So right now I have six nav buttons that look like so:
Code:
.nav_item{
position:relative;
padding:5px;
min-width:123px;
background-color:#000080;
color:#BABABA;
border-top:5px solid #0000FF;
border-bottom:5px solid #0000FF;
border-left:2px solid #BABABA;
border-right:2px solid #BABABA;
border-collapse:collapse;
text-align:center;
float:left;
font-style:italic;
}
It lines up just the way it should and looks perfect but the gray border-lefts and border-rights hit the blue border-tops and border-bottoms and create a weird effect where they seem to split about 10 pixels between them. Any one know how I can make it so the blue border dominates over the gray?
|