This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by WangNingning1994
over 8 years

3/9 [resolved] Why can't I just use one <div class="nav"> tag?

What's the meaning of warp the inner <div class="container"> with <div class="nav">? Any advice would be thankful.

Answer 5597729dd3292fb86e000366

1 vote
Best answer

Permalink

this course works towards bootstrap (a css framework). Simply said: bootstrap is a css file (bootstrap.css) with a lots of css syntax. Inside that file is something like this (disclaimer: this is not an actual copy of what in inside the file):

.container {
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
}

so, container centers the div when screen is large. (more then 1200px)

you can look at the file here, you might want to decompress the file

points
Submitted by stetim94
over 8 years

2 comments

WangNingning1994 over 8 years

thank you.

stetim94 over 8 years

you’re welcome