Button and Icon Not Centering

I am working on the Excursion project and have been struggling to style the icon and button in the second supporting section. The text in the section is centering but I cannot figure out why the icon and and button are not also centered.

HTML:

<!DOCTYPE html>
<html>
  <head>
  <link href='https://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
  <link rel='stylesheet' href='style.css'/>
  </head>
  <body>
  
    <!-- Main section -->
    <div class="main">      
			<video autoplay loop><source src="https://s3.amazonaws.com/codecademy-content/projects/excursion/bg.mp4" type="video/mp4"></video>
      <div class="content container">
        <h1>Discover hidden places in the world around you</h1>
        <a href="#" class="btn">Download Excursion</a> 
      </div>
    </div>


    <!-- First supporting section -->
    <div class="supporting">
      <div class="container">
        <h2>Your personal travel guide</h2>
        <p>Excursion remembers places you like, and recommends new points of interest around you.</p>
      </div>
    </div>


    <!-- Feature section -->
    <div class="feature"></div>

    
    <!-- Second supporting section -->
    <div class="supporting">
      <div class="container">
        <img src="https://s3.amazonaws.com/codecademy-content/projects/excursion/binoculars.png"/>
        <h2>Available for iPhone and Android</h2>
        <a href="#" class="btn">Download Excursion</a> 
      </div>
    </div>

    
    <!-- Footer -->
    <div class="footer">
      <div class="container">
        
      </div>
    </div>
    
  </body>
</html>'''

CSS:

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
}

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

.main {
  position: relative;
}

.main video {
  width: 100%;
}

.main .content {
  position: absolute;
  top: 200px;
  width: 100%;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
}

.btn {
  color: white;
  background-color: #4386fc;
  padding: 16px 26px;
  font-size: 16px;
  font-weight: 300;
  text-decoration: none;
  
}

.main h1 {
  font-size: 50px;
  text-shadow: 0 2px 3px rgba(0,0,0,.4);
  color: white;
  text-align: center;
}


.supporting {
  margin-top: 100px;
  margin-bottom: 130px;
}

.supporting h2 {
  font-size: 48px;
  font-weight: 300;
  text-align: center;
}

.supporting p {
  color: #333;
  font-size: 21px;
  font-weight: 300;
  padding: 0 30px;
  text-align: center;
}

.supporting .container img{
  margin: 0 auto;
}

.feature {
  height: 500px;
  background: url("https://s3.amazonaws.com/codecademy-content/projects/excursion/camp.png");
  background-size:cover;
}

.footer {
  padding: 30px;
}

@media (max-width: 960px) {
  .main {
    height: 540px; 
  }
  .main video {
    height: 540px; 
    width: 960px;
  }
  .main h1 {
    font-size: 32px;
  }
1 Like

why not simple give supporting a text-align: center? This will center all inline elements (image, button) inside the .supporting div

1 Like

Thanks! I was really overthinking/overcomplicating that one!