Navigation ala Google - Problem

04/18/2012 16:40 roteisenklinge#1
Heyho Epvpers User,
nach langer absinens seitens CSS und HTML wollte ich mich mal wieder mit dieser Materie befassen und scheitere schon bei ein so einfachen Aufgabe


Code:
body
{
	background-color:#f7f7f7;
	margin: 0; 
	  padding: 0;
	
	
}

.boxtop

{
left: 0px;
margin: 0 auto;
font-family: 'Chau Philomene One', sans-serif;
width: 100%;
height:30px;
background-color: #2d2d2d;

	
	
	
	
	
}


#navlist li
{
left: 0px;
margin: 0 auto;

display: inline;
list-style-type: none;
padding-right: 20px;
font-family: 'Chau Philomene One', sans-serif;

}
a:link { font-family: 'Chau Philomene One', sans-serif; color: #bbbbbb; text-decoration:none; }
a:visited { font-family: 'Chau Philomene One', sans-serif; color: #bbbbbb; text-decoration:none; }
a:focus { font-family: 'Chau Philomene One', sans-serif; color: #bbbbbb; text-decoration:none; }
a:hover { font-family: 'Chau Philomene One', sans-serif; color: #bbbbbb; text-decoration:none; }
a:active { font-family: 'Chau Philomene One', sans-serif; color: #bbbbbb; text-decoration:none; }
Ich möchte eine Naviagtion wie z.B auf Google.de oder Pvp.Net ( LoL ) erstellen.
Problem ist, das jetzt das Menü nicht mehr oben direkt oben anliegt sondern etwas abstand da ist.






HTML

Code:
<body>
<div id="" class="boxtop">
<ul id="navlist" >
   <li> <a class="link" href="#"> Your Community</a> </li>
   <li> <a class="link" href="#"> Über Uns</a> </li>
   <li> <a class="link" href="#"> Werbung</a> </li>
   <li> <a class="link" href="#"> Impressum</a> </li>
    <li> <a class="link" href="#"> Nutzungsbedingungen</a> </li>

</ul>


</div>
</body>
04/18/2012 16:52 yym3#2
Mach noch ein ul { padding:0; margin:0; } in die CSS datei rein. Habe es nicht ausprobiert, aber das sollte danach klappen.

Gruß
yym3.
04/18/2012 17:27 roteisenklinge#3
Quote:
Originally Posted by yym3 View Post
Mach noch ein ul { padding:0; margin:0; } in die CSS datei rein. Habe es nicht ausprobiert, aber das sollte danach klappen.

Gruß
yym3.
Yap wunderbar klappt vielen dank!
04/18/2012 19:27 __BuRn3R#4
Und wenn du noch die list Punkte weg haben möchtest, schreib in der ul noch list-style:none;

nur'n Tipp.