CSS: An Overview: 19. Background color, height, and width: Oops, try again


#1

Here is code:
div {
background-color: #cc0000;
height: 100px;
}

I am getting this error.

It looks like your

isn't 100px wide; it appears to be
1839px wide. (If you're getting a weird number, try resetting your zoom
with Ctrl-0 or Cmd-0.)

What's the problem? I tried to reset view with Ctrl-0 but nothing happens.
Same error showing again.

Help please. I can't continue.


#2

you give your div a height, you didn't give it a width (add width to div)


#3

So I gave width: 400 px;

When I give width got this error:

Oops, try again.
It looks like your

isn't 100px wide; it appears to be
400px wide. (If you're getting a weird number, try resetting your zoom
with Ctrl-0 or Cmd-0.)

Why to give width when codeacademy didn't tell to do that?


#4

Hahaha, I found bug on Codeacademy

When I am in Ubuntu Linux distribution,
there is no task 3 on this lesson.
Now I am in Windows and I can see there are
3 tasks :))))))

How to refer this to codeacademy? It would be nice.


#5

No, no, it's not bug, now I am in Linux again to see one more time.
Here is other resolution, I didn't scroll it to see task 3 :smiley:

Dumbass


#6

@stetim94 thanks for fast answer!