This forum is now read-only. Please use our new forums! Go to forums
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
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
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
thank you.
you’re welcome