kreisquadrat
Neues Mitglied
hallo,
ich will hier gerade eine feine navigationsleiste machen, aber ich will ein feld in der navigation andersfarbig als alle anderen machen.
was jetzt passiert, ist, dass der blaue text in einer ganz neuen zeile erscheint.
es soll aber wie die anderen punkte in der selben zeile stehen.
margin 0 und padding 0 hab ich schon probiert, das bringt nichts.
hier der css code in style3.css:
und hier der html code auf der seite
der relevante teil ist fett geschrieben.
ich will hier gerade eine feine navigationsleiste machen, aber ich will ein feld in der navigation andersfarbig als alle anderen machen.
was jetzt passiert, ist, dass der blaue text in einer ganz neuen zeile erscheint.
es soll aber wie die anderen punkte in der selben zeile stehen.
margin 0 und padding 0 hab ich schon probiert, das bringt nichts.
hier der css code in style3.css:
Code:
#navigation {
width: 700px;
margin-right: auto;
margin-left: auto;
clear: both;
overflow: hidden;
margin-bottom: 10px;
}
#navigationjugend {
width: 700px;
margin-right: auto;
margin-left: auto;
clear: both;
overflow: hidden;
margin-bottom: 10px;
}
#navigation ul {
list-style-type: none;
width: auto;
margin: 0;
padding: 0;
}
#navigation li {
float: left;
}
#navigation a {
text-decoration: none;
color: #000000;
display: block;
margin: 0 1px;
padding: 5px;
border: 0px solid #708090;
background-color: #FFDD97;
}
#navigation a:hover {
text-decoration: none;
color: #ffffff;
background-color: #FF9933;
}
}
#navigation h {
text-decoration: none;
color: #000000;
display: block;
margin: 0 1px;
padding: 5px;
border: 0px solid #708090;
background-color: #0000A0;
}
#navigation h:hover {
text-decoration: none;
color: #ffffff;
background-color: #0000FF;
}
#navigationjugend ul {
list-style-type: none;
width: auto;
margin: 0;
padding: 0;
}
#navigationjugend li {
float: left;
}
#navigationjugend a {
text-decoration: none;
color: #000000;
display: block;
margin: 0 1px;
padding: 5px;
border: 0px solid #708090;
background-color: #0000FF;
}
#navigationjugend a:hover {
text-decoration: none;
color: #ffffff;
background-color: #0000A0;
}
und hier der html code auf der seite
Code:
<div id="navigation">
<ul>
<li><a href="../default.htm">Start</a></li>
<li><a href="../kreatives/kreatives.htm">Kreatives</a></li>
[B]</div><div id="navigationjugend">
<li><a href="jugend.htm">Jugend</a></li>
</div><div id="navigation">[/B]
<li><a href="../newstermine/newstermine.htm">News & Termine</a></li>
<li><a href="../information_links/information_links.htm">Links</a></li>
<li><a href="../sponsoren/sponsoren.htm">Sponsoren</a></li>
<li><a href="../contact/contact.htm">Kontakt</a></li>
</ul>
</div>
<!-- End Navigation -->