htmlvisitor
Neues Mitglied
Hallo
Untenstehender Code ergibt ein horizonales Menu.
Ich möchte wissen, wie ich das Element HorMenu1Empty in seiner Breite festlegen kann: Problem bei dieser fixen Breite (181px) ist auf dem Apple, dass leider der bold-font mehr Platz in der Breite einnimmt als auf dem PC, so dass die a-Tag Elemente breiter werden. Also ist dann die fixe Breite des HorMenu1Empty zu breit. Mit % geht das auch nicht wirklich.
Besten Dank für einen Tipp.
Patrick
Code:
CSS:
#HorMenu1
{
width: 100%;
font-family: Verdana;
font-size: 11px;
font-weight:bold;
}
#HorMenu1 ul
{
margin: 0;
padding: 0;
list-style-type: none;
}
#HorMenu1 li
{
float: left;
margin-right: 4px;
}
#HorMenu1 a
{
display: block;
float:left;
height: 17px;
font-size:11px;
background-color: #ffffff;
padding-left: 12px;
padding-right: 12px;
padding-top: 4px;
margin-bottom: 0px;
margin-left: 0px;
margin-top: 0px;
text-decoration: none;
border: 1px solid #EBEBEB;
}
.HorMenu1Empty
{
display: inline;
float:left;
height: 17px;
width:181px;
font-size:11px;
background-color: #ffffff;
padding-left: 12px;
padding-right: 12px;
padding-top: 4px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
text-decoration: none;
border: 1px solid #EBEBEB;
}
Untenstehender Code ergibt ein horizonales Menu.
Ich möchte wissen, wie ich das Element HorMenu1Empty in seiner Breite festlegen kann: Problem bei dieser fixen Breite (181px) ist auf dem Apple, dass leider der bold-font mehr Platz in der Breite einnimmt als auf dem PC, so dass die a-Tag Elemente breiter werden. Also ist dann die fixe Breite des HorMenu1Empty zu breit. Mit % geht das auch nicht wirklich.
Besten Dank für einen Tipp.
Patrick
Code:
HTML:
<div id="HorMenu1">
<ul>
<li id="aktuell"><a href="/1/Default.aspx">1</a></li>
<li><a href="/2/Default.aspx">2</a></li>
<li><a href="/3/Default.aspx">3</a></li>
<li><a href="/4/Default.aspx">4</a></li>
<li><a href="/5/Default.aspx">5</a></li>
<li class="HorMenu1Empty"></li>
</ul>
</div>
CSS:
#HorMenu1
{
width: 100%;
font-family: Verdana;
font-size: 11px;
font-weight:bold;
}
#HorMenu1 ul
{
margin: 0;
padding: 0;
list-style-type: none;
}
#HorMenu1 li
{
float: left;
margin-right: 4px;
}
#HorMenu1 a
{
display: block;
float:left;
height: 17px;
font-size:11px;
background-color: #ffffff;
padding-left: 12px;
padding-right: 12px;
padding-top: 4px;
margin-bottom: 0px;
margin-left: 0px;
margin-top: 0px;
text-decoration: none;
border: 1px solid #EBEBEB;
}
.HorMenu1Empty
{
display: inline;
float:left;
height: 17px;
width:181px;
font-size:11px;
background-color: #ffffff;
padding-left: 12px;
padding-right: 12px;
padding-top: 4px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
text-decoration: none;
border: 1px solid #EBEBEB;
}