MonsterUser
Neues Mitglied
Hallo zusammen ich hab ein Problem mit meinen CSS
Meine index.html Datei
Meine styles.css Datei
Wie bekomm ich nun noch so ein grünes feld wie
auf dem Bild mit CSS in die Seite ?
Edit: habe "background-color: #cccccc;" aus CSS code entfernt weil unötig.
Meine index.html Datei
HTML:
<html>
<head>
<title>CSS Problemseite</title>
</head>
<body>
<link href="styles.css" rel="stylesheet" type="text/css">
<div id="page">
</div>
</body>
</html>
Code:
body {background-color:#000000;}
/*
#page {position:relative; margin-top:20px; margin-left:auto; margin-right:auto; width:996px; min-height:580px;}
*/
#page {
position:relative;
margin-top:20px;
margin-left:auto;
margin-right:auto;
width:996px;
min-height:580px;
background-color: #FFFF00;}
auf dem Bild mit CSS in die Seite ?

Edit: habe "background-color: #cccccc;" aus CSS code entfernt weil unötig.
Zuletzt bearbeitet: