9.Borders (CSS) need help


#1

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

* {
    border: 1px dashed black;
}

div {
    height: 50px;
    width: 100px;
    border: 2px solid black;
    border-radius: 5px;
    background-color: #308014;
    margin: 20px 50px 10px 5px;
    border-width:4px;
    border-style:solid;
    border-color:#FF0000;
}

Error: Oops, try again. It looks like your border-color isn't #FF0000.
( i press strg and 0 (no soom ))
so what is wrong ? What have i to change ?


#2

These are the instructions :

Change your div's border to 4 pixels wide and solid, with the hex color #FF0000.

you have to change border color of div .. like this..

border: 4px solid #ff0000;

#3

thx, works :slight_smile:


#4

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