Help with Jumbotron


#1

I think I'm doing everything right, and I double checked the forums. I got a message saying that I need to set the position of the container inside jumbotron. If anyone knows why, please tell me. This is my code:

.nav a {
color: #5a5a5a;
font-size: 11px;
font-weight: bold;
padding: 14px 10px;
text-transform: uppercase;
}

.jumbotron {
background-image:url('http://goo.gl/04j7Nn');
height: 500px;
}

.jumbotron h1 {
color: #fff;
font-size: 48px;
font-family: 'Shift', sans-serif;
font-weight: bold;
}

.jumbotron p {
font-size: 20px;
color: #fff;
}
.container .jumbotron {
position: relative;
top: 100px;
}
.learn-more {
background-color: #f7f7f7;
}

.learn-more h3 {
font-family: 'Shift', sans-serif;
font-size: 18px;
font-weight: bold;
}

.learn-more a {
color: #00b0ff;
}
.nav li {
display:inline;
}


#2

This is selecting jumbotrons that are inside a container, not containers that are inside a jumbotron.


#3

Hey there,

Check out in italics for the changes I did. This should resolve the problem.

.nav a {
color: #5a5a5a;
font-size: 11px;
font-weight: bold;
padding: 14px 10px;
text-transform: uppercase;
}

.jumbotron {
background-image:url('http://goo.gl/04j7Nn');
height: 500px;
}

.jumbotron h1 {
color: #fff;
font-size: 48px;
font-family: 'Shift', sans-serif;
font-weight: bold;
}

.jumbotron p {
font-size: 20px;
color: #fff;
}
.jumbotron .container {
position: relative;
top: 100px;
}
.learn-more {
background-color: #f7f7f7;
}

.learn-more h3 {
font-family: 'Shift', sans-serif;
font-size: 18px;
font-weight: bold;
}

.learn-more a {
color: #00b0ff;
}
.nav li {
display:inline;
}


#4

It worked! Thx :grinning: