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 Treehouse Club: CSS My First Web Page Changing Your CSS

s

can't change the font -size to 0.75 in my chalange...and can't finish it...

style.css
/***********************************************
Top bar color 
***********************************************/
html {
  border-top: 65px solid #4D7094;}
}

/***********************************************
Body styling 
***********************************************/
body {
  max-width: #600px;
  margin: 0 auto;
  padding: 20px 20px;
  font-size:0.75em;
  line-height: 1.6em;
  font-family: Helvetica Neue, Helvetica, Arial, serif;
  color: #777;
  font-weight: 300;
}

.centered {
  text-align: right;
}

/***********************************************
Image styling 
***********************************************/
img {
  border-radius: 100%;
  max-width: 340px;
}

/***********************************************
Headline styling 
***********************************************/
h1 {
  font-size:0.75em;
  line-height: .5em;
  color: #564581;
}

h2 {
  font-size: 1em;
  line-height: 1em;
  font-style: oblique;
  color: #aaa;
}

h3 {
  font-size: 0.75em;
  line-height: 1em;
  font-weight: normal;
}

h4 {
  margin-top: 60px;
  font-weight: 500;
  color: #564581;
}
index.html
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>All About Joy's Page</title>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel="stylesheet" type="text/css">
    <link href="style.css" rel="stylesheet">
  </head>   
  <body> 
    <img src="sam.jpg" alt="Sam">

    <h1>My Name</h1>

    <h2>My Profession</h2>

    <h3>Where I Live</h3>

    <h4>What I do:</h4>
       <p>I'm a teacher at Treehouse, but you should write in what you do here!</p>

    <h4>What I enjoy doing:</h4>  
      <p>When I'm not writing code, I like to surf and play music. Your turn, write in something that makes you happy, or things you like to do in your free time.</p>

  </body>
</html>
Tushar Singh
Tushar Singh
Courses Plus Student 8,692 Points
/***********************************************
Top bar color 
***********************************************/
html {
  border-top: 65px solid #4D7094;  /*1st challenge changed the font size and color*/
}

Second challenge, you din't change the color!

body {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 20px;
  font-size: .75em;   /* change it to .75em */
  line-height: 1.6em;
  font-family: Helvetica Neue, Helvetica, Arial, serif;
  color: #066;  /* color change #066 */
  font-weight: 300;
}

Just change the body's color and You are all set !

html additional '}'..remove it!

1 Answer

Paul Ryan
Paul Ryan
4,584 Points
/***********************************************
Top bar color 
***********************************************/
html {
  border-top: 65px solid #4D7094;
}

/***********************************************
Body styling 
***********************************************/
body {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 20px;
  font-size:0.75em;
  line-height: 1.6em;
  font-family: Helvetica Neue, Helvetica, Arial, serif;
  color: #066;
  font-weight: 300;
}

.centered {
  text-align: right;
}

/***********************************************
Image styling 
***********************************************/
img {
  border-radius: 100%;
  max-width: 340px;
}

/***********************************************
Headline styling 
***********************************************/
h1 {
  font-size:0.75em;
  line-height: .5em;
  color: #564581;
}

h2 {
  font-size: 1em;
  line-height: 1em;
  font-style: oblique;
  color: #aaa;
}

h3 {
  font-size: 0.75em;
  line-height: 1em;
  font-weight: normal;
}

h4 {
  margin-top: 60px;
  font-weight: 500;
  color: #564581;
}

in your html rule you have an additonal }, you need to remove it. Also in your body rule you have included a # when defining the max-width.

You also never set the color property either.