jmassey09
10-23-2009, 07:17 PM
I am having a problem with my navigation. My navigation menu is 86px in height. My font size is only a 18px. The menu should be vertically aligned center and I want a border beside each li to be 86px high. It is currently only 41px high. How can i make it so the border will go the entire height without stretching my text? See below for my current css
div css
div#navigation {
background-color: #DB2727;
width: 900px;
height: 86px;
}
MY NAVIGATION CSS FOR UL LI LOOKS LIKE THIS:
ul{
margin: 0;
border: 0px;
padding:18px 3px 3px 7px;
}
ul.primary li{
display: inline;
list-style-type: none;
}
ul.primary li a{
list-style-type: none;
margin-top: 10px;
line-height:40px;
font-size: 18px;
color: #FFFFFF;
border-right: 2px solid #EB3A30;
padding:10px;
text-decoration:none;
}
ul.primary li a:hover{
background:#D21B21;
}
Thanks! -Justin Massey
div css
div#navigation {
background-color: #DB2727;
width: 900px;
height: 86px;
}
MY NAVIGATION CSS FOR UL LI LOOKS LIKE THIS:
ul{
margin: 0;
border: 0px;
padding:18px 3px 3px 7px;
}
ul.primary li{
display: inline;
list-style-type: none;
}
ul.primary li a{
list-style-type: none;
margin-top: 10px;
line-height:40px;
font-size: 18px;
color: #FFFFFF;
border-right: 2px solid #EB3A30;
padding:10px;
text-decoration:none;
}
ul.primary li a:hover{
background:#D21B21;
}
Thanks! -Justin Massey