Hallo Leute,
Ich wusste nicht recht wie ich den Threadtitel nennen sollte, trotzdem versuche ich mein Problem zu erläutern und hoffe auf Hilfe.
Ein Freund von mir meinte eben der Aufbau meiner HTML datei sei nicht optimal. Was denkt ihr?
HTML-Code:
<!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>
<title>Startseite</title>
<link href="../css/screen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="Main">
<ul id="nav">
<li><a href="#">Startseite</a></li>
<li><a href="#">Über uns</a></li>
<li><a href="#">Unsere Arbeit</a></li>
<li><a href="#">Kontakt</a></li>
</ul>
<h2 id="Willkommen">Herzlich Willkommen auf unserer Webpräsenz</h2>
</div>
</body>
</html>
Das ist mein Aufbau der HTML.
Nun habe ich aber noch das Problem, das die Seite das komplette Fenster vom Browser ausfüllen soll, leider bekomm ich es nicht hin.
Hier ist der Css Code:
HTML-Code:
body{
font-size:14px;
font-family:Arial,Verdana,Sans-Serif;
height:100%
}
#Main{
background-image:url(../bilder/background.jpg);
background-repeat:no-repeat;
width:1250px;
height:1250px;
}
#nav{
position: absolute;
width:980px;
height:85px;
list-style:none;
margin: 0px;
padding: 0px 130px;
}
li{
list-style: none;
color: white;
float: left;
margin-right:3px;
margin-left: 3px;
padding: 5px 40px 5px 40px;
width: 110px;
height: 75px;
text-align: center;
line-height: 75px;
}
#Willkommen{
padding-top:150px;
padding-left:390px;
color:white
Hoffe ich habe alles richtig gemacht.
Danke, und einen schönen Sonntag.