10.Divs + Classes



I have a question about this lesson and it's exercise.

When i am adding DIVs web page is coming to its full look, but i don't understand why?

For example, when i added the div class="main" page became as it should be.

Why is that?


Hello there, when you assign class "main" to your div, CSS styling kicks in - and in the stylesheet you have control over height, width, etc. Find ".main" class selector and check out its attributes.