9.borders


#1

I cant seem to get my code for nine right. An error keeps popping up telling me about my border color.
Someone please help me


#2

Could you show us your code? Preferable both html and css


#3

o its ok i finally got it


#4

Hi, excuse me but there is probably some kind of bug at this exercise because i put the border width of the div selector to 4px but the editor continue to tell me that the border is not wide 4 pixels. This is my code in HTML and CSS:

---HTML---

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

---CSS---
* {
border: 1px dashed black;
}

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

when i hit save and submit the editor tell me: "Oops, try again.
It looks like your border isn't 4px wide."

Please can someone help me?


#5

Make sure your browser zoom is set to 100% (ctrl + 0 or cmd + 0 for mac)


#6

You are right! That were the problem, thank you!


#7

Thanks! Do you know why the zoom would cause that problem?


#8

zoom changes the width of the border, the border becomes bigger/smaller depending up on how you zoomed. Which in turn causes the error