Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Thanks Everyone For Your Help And Patience

Thanks Everyone For Your Help And Patience, The Website Is Completed And It Looks Fabulous Except For The Headers (They Seem To be On The Left Side)

I Used This In CSS

title {

padding: 10px 0px; margin-left: auto; margin-right: auto; text-align: center; }

copyright {

border-top: 8px solid #2A0400; padding: 10px 0px; margin-left: auto; margin-right: auto; text-align: center; }

Dave McFarland
Dave McFarland
Treehouse Teacher

Hi Crystal,

There's a special way to put HTML/CSS/JavaScript into a forum post so that it's more readable:

  1. hit return to create a new line and type three back tick characters ```

  2. hit return to create another new line and paste your HTML

  3. hit return and add three more back tick characters: ``` The back tick character isn't the same as the single quote -- ' -- mark; the back tick is located on the same key as the ~ on most keyboards.

Also to add correct color highlighting add the name of the language after the back ticks like this: ```CSS. Here's what CSS should look like in a forum post:

#gallery li {
  float: left;
  width: 45%;
}

On mine the backtick is to the left of the 1 key along the top

5 Answers

Did you make sure to define a width for the container your header is in?

No I Didn't Thanks Matt

Thanks Dave

The Title Still Is Not Centered

#title {
padding: 10px 0px;
 margin-left: auto;
 margin-right: auto;
text-align: center;
}

It might be helpful if you also added your HTML

<!DOCTYPE HTML>

<html lang="en">
  <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <title>Dr. Maggie Wincher Music Ministries</title>
     <link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen">
     <link rel="stylesheet" href="css/grid.css" type="text/css" media="screen">
     <link href='http://fonts.googleapis.com/css?family=Nunito' rel='stylesheet' type='text/css'>
     <link rel="stylesheet" href="css/style.css" type="text/css" media="screen"> 


 </head>
<body>
  <div class="container clearfix">    
        <p id="Dr. Maggie Wincher.html"></p><br>
      <div class="grid_12">
          <em><h1>Dr. Maggie Wincher Music Ministries</h1></em> 
      </div>

      <div class="grid_4">
          <img src="img/Dr. Maggie Wincher.jpg" alt="Dr. Maggie Wincher">
          <em><h4>Dr. Maggie Wincher</h4></em><br>
      </div>  


      <div class="grid_8 omega">
          <p cite="http://www.biblegateway.com/passage/?search=Psalm+68%3A4&amp;version=NIV">
          <em><h2><p>Sing to God, sing in praise of his name,
          extol him who rides on the clouds;
          rejoice before himβ€”his name is the Lord. -Psalm 68:4</p></em></h2></p>

          <em><h3>My Mission</em></h3>
          <p>"The mission of Dr. Maggie Wincher Music Ministries is to aggressively fulfill the commission that Jesus Christ gave to His followers to go into the world and make disciples of all people. My purpose is to bring the lost to Jesus Christ and to build up and encourage those who are already believers."</p>
      </div>