Margins,Boders and Padding section!


#1

Hi.I cant pass this exercise.This is my code,please tell me what is wrong with it.I tried with another browser and i use no zoom on the page.This is for the review of the section.

.div {
border-width: 1px;
border-style: solid;
border-color: black;
background-color: #CC0000;
margin-top: 10px;
margin-right: 5px;
margin-bottom: 5px;
margin-left: 5px;
padding-top: 0px;
padding-right: 30px;
padding-bottom: 0px;
padding-left: 10px;
}


#2

if you use a dot in the beginning of your css selector (.div), you will select a html element with class div, are you sure you do not want to select the div element (<div></div>)?


#3

Like @stetim94 already said, if you are trying to select the element div, then you need to remove the dot in front of div:

What you have done here is actually select a class called div, which means you selected something in your HTML that looks like this:

<....class="div">...</.....>

which you probably don't want.


#4

That did it.Thx a lot guys !