Corraggiouno
Mitglied
Hi,
benötige mehrere Listen auf meiner Seite; habe folgenden code geschrieben:
html-code
wenn ich nun meine Liste ganze normal definiere mit
und
.....dann wird links vom Link Unternehmen keine Begrenzung angezeigt; wenn ich aber
wie oben
.......dann wird trotz der Klasse
die Abgrenzung links vom Link Unternehmen angezeigt...........habe dafür keine Erklärung
kann mir da jemand einen Tipp geben?
Jaki und Klaiber
benötige mehrere Listen auf meiner Seite; habe folgenden code geschrieben:
Code:
html {
height: 100.3%;
}
body{
font-family: Verdana, sans-serif;
font-size:0.8em;
background: #efeded;
color: #000000;
}
* {
margin: 0;
padding: 0;
}
div#wrapper {
width: 840px;
margin:5px auto;
}
h1 {
background: url(../images/logo.gif) no-repeat;
height:262px;
text-indent: -999em;
border-bottom-style:double;
border-width:5px;
border-color: #c1c0c0;
}
ul#navigation{
width:650px;
margin-top: -36px;
list-style-type:none;
}
ul#navigation li
{
background: url(../images/abgrenzung.gif) no-repeat;
float:left;
display:inline;
padding-left:2px;
line-height: 2.0em;
}
.none_bg
{
background-image:none;
}
a
{
text-decoration:none;
padding: 0 22px;
}
a.mail
{
padding:0px;
}
a:link
{
text-decoration:none;
color:#000000;
}
a:visited
{
color:#000000;
}
a:hover
{
background-image: url(../images/hover.gif);
background-repeat: no-repeat;
background-position:50% 15px;
display:block;
height: 25px;
}
a.mail:hover
{
background:none;
display:inline;
}
div#maintext
{
float:left;
background-color:#E0E0E0;
background-repeat: repeat-y;
width: 600px;
margin-top:12px;
padding-top:20px;
padding-left: 15px;
padding-right:10px;
border-left:1px solid #b2b2b2;
line-height: 1.8em;
}
h3
{
padding-bottom: 5px;
}
p
{
padding-bottom: 15px;
}
div#sidebar
{
float:right;
background-color:#D6D6D6;
background-repeat: repeat-y;
width: 200px;
height: 380px;
margin-top:12px;
padding-top: 20px;
padding-left: 10px;
border-left:3px double #A4A4A4;
border-right:1px solid #A4A4A4;
line-height: 1.8em;
}
img
{
margin-top: -20px;
float:right;
}
html-code
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Jaki und Klaiber</title>
<link href="css/jk.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="wrapper">
<h1>Jaki und Klaiber</h1>
<ul id="navigation">
<li class="none_bg"><a href="unternehmen.html">Unternehmen</a></li>
<li><a href="leistungen.html">Leistungen</a></li>
<li><a href="partner.html">Partner</a></li>
<li><a href="stellenangebote.html">Stellenangebote</a></li>
<li><a href="kontakt.html">Kontakt</a></li>
</ul>
<div id="maintext">
<h3>Unternehmen</h3>
</div>
<div id="sidebar">
<h3>Kontakt</h3>
</div>
</div>
</body>
</html>
wenn ich nun meine Liste ganze normal definiere mit
Code:
ul{
width:650px;
margin-top: -36px;
list-style-type:none;
}
Code:
li
{
background: url(../images/abgrenzung.gif) no-repeat;
float:left;
display:inline;
padding-left:2px;
line-height: 2.0em;
}
wie oben
Code:
ul#navigation{
width:650px;
margin-top: -36px;
list-style-type:none;
}
ul#navigation li
{
background: url(../images/abgrenzung.gif) no-repeat;
float:left;
display:inline;
padding-left:2px;
line-height: 2.0em;
}
Code:
.none_bg
kann mir da jemand einen Tipp geben?
Jaki und Klaiber