Code not being rendered


#1

Can anyone tell me why does this code of mine is not being rendered.
Here are my HTML and CSS Codes.
Please tell me where I am wrong. It would be a great help.













The CSS code;

div{
border-radius:5px;

header{

        height:40px;
        width:95%;
        background-color:black;

}

.left{

    background-color:red;
    width:10%;
    height:400px;

}

.right{

    width:88%;
    background-color:yellow;
    height:400px;

}

footer{

        height:40px;
        width:95%;
        background-color:blue;

}


#2

Please post html also I only see your .css


#3

Your div css selector is missing a closing curly bracket (})

if you edit/update your question, leave a reply so i get a notification. Your html code is not visible, take the following steps to make your code visible:

select your code and press ctrl + shift + c (or cmd + shift + c if you use a mac)

if this instructions are unclear, you can also insert 3 backticks before and after your code, like so:

```
<p>visible</p>
```

the backtick is located above the tab key on your keyboard


#4

I am have a similar problem. My code is not showing up in the editor. It is just blank.
My HTML:

<!DOCTYPE html>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
        <title></title>
    </head>
    <body>
    <div id="header"></div>
    <div class="left"></div>
    <div class="right"></div>
    <div id="footer"></div>
    </body>
</html>

my CSS:

#header {
    position: fixed;
    z-index: 1;
    background-color: #031926;
    border-radius: 5px;
    width: 97.5%
    height: 60px;
    
}

.left {
    background-color: #b7ce63;
    border-radius: 5px;
    width: 10%
    height: 500px
    
}

.right {
    background-color: #44af69;
    border-radius: 5px;
    width: 90%
    height: 500px
}

#footer {
    background-color: #69ddff;
    border-radius: 5px;
    width: 97.5%
    height: 60px
}

#5

Found it myself, sorry. Forgot the ; after the height and width


#6

you are missing a few semi-colons, quit a few actually


#7

yeah was going over it again and saw it


#8

thank you anyway. Sorry for the bother


#9

No problem, need further help with your resume?


#10

I am fine for now. Thank you