• Das Erstellen neuer Accounts wurde ausgesetzt. Bei berechtigtem Interesse bitte Kontaktaufnahme über die üblichen Wege. Beste Grüße der Admin

Abstände entfernen

Kenny_Meyer

New member
Ich hab eine Frage:

Ich will dass bei meine #leftbar soll direkt am Rand anliegen und kein <margin> existieren. Ich habe bereits wie unten zu sehen ist <margin> auf 0px gesetzt, aber da ist imme rnoch Abstand! Hat es was mit dem PHP-Code zu tun?

HTML:
<!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=iso-8859-1" />
<title>Simple-Home</title>
</head>
<style type="text/css">
<!--
body {background: #000000;
}

p {font-family:"Lucida Sans";
}

a {text-decoration:none;
   color:#000000;
}
a:hover {color:#990000;
}
a:visited {color:#333333;
}
/*-Linke Navigationsbar------------------------*/

#leftbar {height:100%;
		  width:25%;
		  background-color:#FFFFFF;
		  display:block;
		  position:static;
		  float:left;
		  margin-top:0px;
		  margin-left:0px;
		  margin-bottom:0px;
		  padding-top:40px;
		  padding-left:10px;
}

#leftbar li {font-size:large;
}

#leftbar span {font-weight:bold;
			   color: #000000;
			   font-family:"Lucida Sans";
}

#leftbar ul {list-style-type: hiragana;
}

-->
</style>
<body>
<div id="leftbar">
  <table height="100%" width="100%">
    <tr>
      <td><ul>
          <li><a href="#" title="Kenny"><spacer /><span>Kenny</span></a></li>
        <br />
          <li><a href="#" title="Projekte">
            <p>Projekte</p>
          </a></li>
        <li><a href="#" title="About Me">
          <p>About Me</p>
        </a></li>
      </ul></td>
    </tr>
  </table>
</div>
	
	
</body>
</html>

}
 
Zuletzt bearbeitet:
Dann wirst Du wohl auf
Code:
padding-left:10px;
verzichten müssen.

Edit: Du brauchst
Code:
body {background: #000000;
margin:0;
padding:0;
}
 
Zuletzt bearbeitet:
Zurück
Oben