Padding


#1

my code --

my congrats --
I passed -- go on to Floating

my results -- a long black line. This can't be right.

That was a lot of work for a long black line. what's wrong?


#2

well, your div doesn't have a height, or a padding-top or padding-bottom, so the height is 0, you see the border (the long black line)

Try adding height to your div


#3

AH-HA!!
Will do --- thanks for the help!


#4

But why does the robot pass me when it is obvious I was incorrect?


#5

Because your code was correct? You can perfectly fine have a div without any height. The "robot" only checks if your code is correct, it doesn't check how your output looks


#6

Understood. thanks for the explanation.