Problem with formatting text


#1


https://www.codecademy.com/courses/web-ext/projects/html-css-prj_shutterbugg


I am having trouble getting the text to format properly in the first section. Any suggestions? http://d.pr/i/s0f7


<!doctype html>
<html>
  <head>
    <link rel="stylesheet" href="https://s3.amazonaws.com/codecademy-content/projects/bootstrap.min.css">
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <!-- The main section -->
    <div class="main">
      <div class="container">
        <h1>Introducing Shutterbug</h1>
        <h2>Capture the moments that matter</h2>
        <a class="download" href="#">Download Shutterbug</a>
      </div>
    </div>

    <!-- The first section div -->
 <div class="section"> 
   <div class="container"> 
     <div class="row"> 
       <div class="col-md-6"> 
         <img src="https://s3.amazonaws.com/codecademy-content/projects/shutterbugg/share.png" > 
       </div> 
       <div class="col-md-6"> <h1>Share</h1> <p>Share your moments with the people who matter to you most. With Shutterbugg, it's easy to share with the right people.</p> 
       </div>
     </div>
   </div>
    </div>

    <!-- The second section div -->
    <div class="section">
      <div class="container">

      </div>
    </div>

    <!-- The third section div -->
    <div class="section">
      <div class="container">

      </div>
    </div>

    
    <div class="store section container">
      <h2>Available for iPhone, iPad, and Android.</h2>
      <img src="https://s3.amazonaws.com/codecademy-content/projects/shutterbugg/app-store.png" width="185px" />
      <img alt="Get it on Google Play" src="https://s3.amazonaws.com/codecademy-content/projects/shutterbugg/google-play.png" width="159px" />
    </div>

    <!-- The footer div -->
    <div class="footer">
      <div class="container">
        
      </div>
    </div>

  </body>
</html>


.container {
  max-width: 928px;
}

h1, h2, p, a {
  font-family: 'Helvetica Neue Thin', 'HelveticaNeue-Thin', 'helvetica neue', helvetica, arial, 'lucida grande', sans-serif;
}

h1 {
  font-size: 64px;
  font-weight: 100;
  margin-bottom: 20px;
}

h2 {
  color: #000; 
  font-size: 2.3em; 
  font-weight: 300; 
  line-height: 1.25; 
  margin: 1em 0; }

a {
  font-size:18px;
  font-weight: 200;
}

.main {
  height: 550px;
  padding-top: 55px;
  background: url(https://s3.amazonaws.com/codecademy-content/projects/shutterbugg/intro.jpg);
  background-size: cover;
}

.download {
  background-color:rgba(238,68,95,0.9); 
  border-radius:4px; 
  color: #fff; 
  padding: 8px 30px; 
  transition:box-shadow 0.5s; 
}

.download:hover {
  background-color:rgba(238,68,95,1); 
  box-shadow:0px 1px 6px rgba(0,0,0,0.6); 
  border-radius:4px; 
  color: #fff; 
  padding: 8px 30px; 
  text-decoration: none; 
  transition:box-shadow 0.25s; }

.main p {
  font-size: 26px;
  font-weight: 200;  
  margin-bottom: 40px;
}

.section .row {
  padding-top: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #dbdbdb;
}

.section h1 {
  float: right;
}

.store {
  text-align: center;
  border-bottom: 0px;
  padding-bottom:100px
}

.footer {
  border-top: 1px solid #dbdbdb;
  background-color: #f3f3f3;
  padding: 20px 0px 80px;
}

.footer ul {
  list-style-type: none;
  padding-left: 0;
}

.footer li {
  color: #999;
  font-weight: 600;
}

@media (max-width: 500px) {
  .col-md-6 img {
    padding: 50px;
    width: 100%;
  }
  div {
    display: block;
  }
}


#2

Hey there, I guess you just need to follow proper tag nesting structure:

<div class="col-md-6">
  <h1>Share</h1>
  <p>Share your moments with the people who matter to you most. With Shutterbugg, it's easy to share with the right people.</p> 
</div>

#3

Ah, thanks for that!


#4

Glad to help, cheers :slight_smile:


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.