Not accepting my Border


#1


https://www.codecademy.com/en/courses/web-beginner-en-6merh/1/7?curriculum_id=50579fb998b470000202dc8b


Oops, try again.
Did you set your

's border to 1px wide?


CSS

div {
    border: 1px solid black;
    background-color: #cc0000;
    margin: 10px 5px 5px 50px;
    padding: 0px 30px 0px 10px;
}


HTML

<!DOCTYPE html>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
        <title>Result</title>
    </head>
    <body>
        <div></div>
    </body>
</html>


#2


#3

Try to reset your browser zoom by doing so:

On MAC - press cmd+0
On Windows - press ctrl+0

Then, save & submit your code

Plus, did you remeber to link your index.html to your stylesheet.css?


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.