HTML/PHP Language Difficulties?

heelsuu

New member
I'm trying to do a website with HTML/PHP Language but when i do my div option in the css sheet, nothing appear on my screen except my body.
Here's my Body structure:

<div id="page">

<div id="header">
</div>

<div id="contenu">
<h1>TEST</h1>
</div>

<div id="footer">
</div>

</div>

css part:

#header{
width: 100%;
height: 15%;
position: absolute;
top: 75%;
left: 0%;
background-color: #blue;
}

#footer{
width: 100%;
height: 5%;
position: absolute;
top: 50%;
left: 0%;
background-color: #red;
}
Thanks, i'm ok now
 
Could you give more details? Source code perhaps?

This code will display 'TEST' as header.
This part: "background-color: #red;" is wrong. When typing name of color, don't use #, so it should look like: "background-color: red;". Same in #header.

Anything else?
 
When writing background color, you can use color, hex, or rgb. In your example, you are combined color and hex. You would need to do background-color: red; or background-color: #FF0000;
 
Back
Top