I have a div in my master page for the top navigation menu. I need to display this all on one line but the text keeps wrapping. I have tried everything I now but its not working. Please help. Here is my code:
CSS:
#navigation {
height:15px;
background-color:#e2222f;
padding:15px 0px 15px 26px;
clear:both;
text-align:center;
font-size: 14px;
font-weight: bold;
text-transform: uppercase;
width:auto;
}
#navigation ul {
margin: 0px;
padding: 0px;
width:auto;
text-align:center;
}
#navigation ul li {
list-style-type:none;
float:left;
width:auto;
padding:0px 15px;
border-left: solid 1px #FFF;
}
#navigation ul li:first-child {
border-left: none;
}
#navigation a {
color: #ffffff;
text-decoration: none;
}
#navigation a:hover {
text-decoration: underline;
}
VB code:
If rs.Rows.Count > 0 Then
For Each rsRow In rs.Rows
If ctr = 1 Then
TopNav = TopNav & "<div class=topnav style='margin-left: 10px;'><a href='" & rsRow("TopNav_Link") & "&meeting_id=" & Meeting_ID & "' style='font-weight: bold;'>" & rsRow("TopNav_Title") & "</a></div>"
ElseIf LCase(rsRow("TopNav_Link")) = "/private/home.asp" Then
TopNav = TopNav & "<div class=topnav-divider>|</div><div class=topnav><a href='" & rsRow("TopNav_Link") & "' style='font-weight: bold;'><nobr>" & rsRow("TopNav_Title") & "</nobr></a></div>"
Else
TopNav = TopNav & "<div class=topnav-divider>|</div><div class=topnav><a href='" & rsRow("TopNav_Link") & "&meeting_id=" & Meeting_ID & "' style='font-weight: bold;'><nobr>" & rsRow("TopNav_Title") & "</nobr></a></div>"
End If
ctr = ctr + 1
Next rsRow
End If
page div:
<div id="navigation" style="display: inline-block; width: 671px; text-wrap:none;">
<% Response.Write(MeetingNavigation.TopNav(strMeeting_ID, strCID))%>
</div>
CSS:
#navigation {
height:15px;
background-color:#e2222f;
padding:15px 0px 15px 26px;
clear:both;
text-align:center;
font-size: 14px;
font-weight: bold;
text-transform: uppercase;
width:auto;
}
#navigation ul {
margin: 0px;
padding: 0px;
width:auto;
text-align:center;
}
#navigation ul li {
list-style-type:none;
float:left;
width:auto;
padding:0px 15px;
border-left: solid 1px #FFF;
}
#navigation ul li:first-child {
border-left: none;
}
#navigation a {
color: #ffffff;
text-decoration: none;
}
#navigation a:hover {
text-decoration: underline;
}
VB code:
If rs.Rows.Count > 0 Then
For Each rsRow In rs.Rows
If ctr = 1 Then
TopNav = TopNav & "<div class=topnav style='margin-left: 10px;'><a href='" & rsRow("TopNav_Link") & "&meeting_id=" & Meeting_ID & "' style='font-weight: bold;'>" & rsRow("TopNav_Title") & "</a></div>"
ElseIf LCase(rsRow("TopNav_Link")) = "/private/home.asp" Then
TopNav = TopNav & "<div class=topnav-divider>|</div><div class=topnav><a href='" & rsRow("TopNav_Link") & "' style='font-weight: bold;'><nobr>" & rsRow("TopNav_Title") & "</nobr></a></div>"
Else
TopNav = TopNav & "<div class=topnav-divider>|</div><div class=topnav><a href='" & rsRow("TopNav_Link") & "&meeting_id=" & Meeting_ID & "' style='font-weight: bold;'><nobr>" & rsRow("TopNav_Title") & "</nobr></a></div>"
End If
ctr = ctr + 1
Next rsRow
End If
page div:
<div id="navigation" style="display: inline-block; width: 671px; text-wrap:none;">
<% Response.Write(MeetingNavigation.TopNav(strMeeting_ID, strCID))%>
</div>