Move project


#1

hello,
i can't make the h2 inline

CSS code

.col h2{
display: inline-block;

}


#2

What error message are you getting?


#3

the three h2 elements don't get inline


#4

What exact error message?


#5

i don't get an error, because it's a project.

i try to achieve this:

but i get this:


#6

Ah, sorry.

If you're using inline-block, try just using inline.


#7

nothing happens...

html, body {
  margin: 0;
}

h1, h2, a {
  font-family: 'Oswald', sans-serif;
}

p {
  font-family: Helvetica, Arial, sans-serif; 
  text-align: center;
  font-weight: bold;
 
}

.container {
  width: 940px;
  margin: 0 auto;
}

/* Main */
.main {
  height: 600px;
  background-image: url("https://s3.amazonaws.com/codecademy-content/projects/move/bg.jpg");
  background-repeat:no-repeat;
  background-size:2400px 700px;
  
}

.main .btn{
  color: black;
  background-color: orange;
  padding: 10px 15px;
  border: 2px black;
  
}

.main h1 {
  font: 3px Impact;
  color: white;
  text-align: center;
}

.main p {
  font-size: 100%;
  color: white;
}


/* Supporting */
.supporting {
  text-align: center;
  padding: 50px 0 80px;
  background-color: #1c1c1c;
}

.supporting .col {
  float: left;
  width: 28%;
  padding: 10px;
}

.supporting h1,
.supporting h2 {
  color: #ffa800;
  font-size: 20px;
  margin-bottom: 10px;
}

.clearfix {
  clear: both;
}

.supporting p {
  color: #efefef;
  margin-bottom: 20px;
  line-height: 20px;
  font-size: 12px;
}

.supporting .btn {
  background-color: #eee;
  color: #1c1c1c;
  font-size: 18px;
  padding: 8px 30px;
  text-decoration: none;
  display: inline-block;
}

/* Feature */
.feature {
  height: 600px;
  background-image: url("http://hivewallpaper.com/wallpaper/2014/12/hd-fitness-wallpaper-5-background-wallpaper.jpg");
  background-repeat: y-repeat;
}

.feature h1,
.feature h2 {
  color: #fff;
  font-size: 40px;
  margin: 0;
  padding:50px 0 0;
}
.feature h3{
  color: white;
  margin-top:20px;
  
}
/* Footer */
.footer {
  height: 600px;
}

.footer h1,
.footer h2 {
  color: #fff;
  font-size: 40px;
  margin: 0 0 20px 0;
  padding:50px 0 0;
}

.footer p {
  color: #fff;
  margin: 0 0 20px 0;
  font-size: 18px;
}


@media (min-width:600px) {
  .main h1 {
    font-size: 200px;
  }

  .supporting .col {
    width: 30%;
  }

  .supporting h2 {
    font-size: 40px;
  }

  .supporting p {
    font-size: 14px;
  }

  .feature h2 {
    font-size: 60px;
  }
  .col h2{
    display: inline-block;
    
  }
  .feature .supporting{
    background:none;
    
  }
}