Navigation mit "Füllung"

Navigation mit "Füllung"

Beitragvon nobody@home » 01.02.2010, 16:04

hallo zusammen,
ich brauche eine navigation die eine bestimmte breite mit rot ausfüllt.
bei mouse hover soll der link transparent werden.
geht soweit alles nur den rest rechts kann ich nicht ausfüllen. wenn ich rechts was einfüge das den rest ausfüllen soll bekomme ich einen zeilenumbruch nach der liste.

hier der text:
Code: Alles auswählen
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Navigation</title>
<link href="stylegrafik.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
   font-family: Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #000;
   background-color: #FFF;
}
* { margin: 0; padding: 0; border: 0; }

#Navibalken {
   position:absolute;
   left:75px;
   top:197px;
   width:781px;
   height:18px;
   z-index:9;
   border: 1px solid #000;
   overflow: hidden;
}

ul#navigation {
   list-style-type:none;
}
ul#navigation li{
   float:left;
}

ul#navigation li a{
   background-color:#f00;
   font-size: 12px;
   color: #FFF;
   text-decoration: none;
   padding-right: 15px;
   padding-left: 15px;
   padding-bottom: 2px;
}
ul#navigation li a:hover{
   background:none;
   color: #000;
}


-->
</style>
</head>

<body>

  <div id="Navibalken">
      <ul id="navigation">
          <li><a href="#">Navi 1</a></li>
          <li><a href="#">Navi 2</a></li>
          <li><a href="#">Navi 3</a></li>
          <li><a href="#">Navi 4</a></li>
          <li><a href="#">Navi 5</a></li>
        </ul>
   </div>

</body>
</html>


ideen?

erfolgreiche woche
stephan
nobody@home
neu hier
 
Beiträge: 4
Registriert: 16.06.2009, 16:46

Re: Navigation mit "Füllung"

Beitragvon Azra » 04.02.2010, 10:29

Ist zwar eine unsaubere Lösung aber es klappt

Code: Alles auswählen
  <div id="navirest"></div>
  <div id="Navibalken">
      <ul id="navigation">
          <li><a href="#">Navi 1</a></li>
          <li><a href="#">Navi 2</a></li>
          <li><a href="#">Navi 3</a></li>
          <li><a href="#">Navi 4</a></li>
          <li><a href="#">Navi 5</a></li>
        </ul>

   </div>


der ID gibst du folgendes mit:

background-color:red;
height:19px;
margin-left:396px;
margin-top:197px;
width:462px;
“HTML is the language for describing the structure of Web pages.”
“CSS is the language for describing the presentation of Web pages, including colors, layout, and fonts.”
Noch weitere Probleme? Kontakt über meine Webseite - simonduda.ch
Benutzeravatar
Azra
Stammuser
 
Beiträge: 422
Registriert: 04.02.2010, 08:36
Wohnort: (Alten)bochum


Moderatoren: Laus, Moderatoren

Ähnliche Beiträge zu "Navigation mit "Füllung""

Zurück zu: CSS für Fortgeschrittene

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast