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

SAMUEL LAWRENCE
PLUS
SAMUEL LAWRENCE
Courses Plus Student 8,447 Points

Project Challenge

Hi guys, I'm so excited. I was able to complete the Project Challenge of Guil Hernandez to layout the "Best City Guide" website. I got it to work almost as exactly as his without looking at the solution video. So I wanted to share my code before moving on to the solution video. So excited. Thanks guys. I'm sure it could be written better but I'm jsut excited cause it works.

<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Best City Guide</title>
    <link href='https://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/styles.css">
</head>
<body>
  <div class="wrap">
    <div class="container">
        <header class="main-header clearfix">
            <h1 class="name"><a href="#">Best City Guide</a></h1>
            <ul class="main-nav">
                <li><a href="#">ice cream</a></li>
                <li><a href="#">donuts</a></li>
                <li><a href="#">tea</a></li>
                <li><a href="#">coffee</a></li>
            </ul>
        </header><!--/.main-header-->
    </div><!--End header container-->

    <div class="banner">
        <img class="logo" src="img/city-logo.svg" alt="City">
        <h1 class="headline">The Best City</h1>
        <span class="tagline">The best drinks and eats in the best city ever.</span>
    </div><!--/.banner-->

    <div class="container clearfix">
        <div class="secondary col">
            <h2>Welcome!</h2>
            <p>Everything in this city is worth waiting in line for.</p>
            <p>Cupcake ipsum dolor sit. Amet chocolate cake gummies jelly beans candy bonbon brownie candy. Gingerbread powder muffin. Icing cotton candy. Croissant icing pie ice cream brownie I love cheesecake cookie. Pastry chocolate pastry jelly croissant.</p>
            <p>Cake sesame snaps sweet tart candy canes tiramisu I love oat cake chocolate bar. Jelly beans pastry brownie sugar plum pastry bear claw tiramisu tootsie roll. Tootsie roll wafer I love chocolate donuts.</p>
        </div><!--/.secondary-->

        <div class="primary col">
            <h2>Great food</h2>
            <img class="feat-img" src="img/treats.svg" alt="Drinks and eats">
            <p>Croissant macaroon pie brownie. Cookie marshmallow liquorice gingerbread caramels toffee I love chocolate. Wafer lollipop dessert. Bonbon jelly beans pudding dessert sugar plum. Marzipan toffee drag&#233;e chocolate bar candy toffee pudding I love. Gummi bears pie gingerbread lollipop.</p>
        </div><!--/.primary-->

        <div class="tertiary col">
            <h2>How to get here</h2>
            <p><strong>Plane: </strong>Tiramisu caramels gummies chupa chups lollipop muffin. Jujubes chocolate caramels cheesecake brownie lollipop drag&#233;e cheesecake.</p>
            <p><strong>Train: </strong>Pie apple pie pudding I love wafer toffee liquorice sesame snaps lemon drops. Lollipop gummi bears dessert muffin I love fruitcake toffee pie.</p>
            <p><strong>Car: </strong>Jelly cotton candy bonbon jelly-o jelly-o I love. I love sugar plum chocolate cake pie I love pastry liquorice.</p>
        </div><!--/.tertiary-->
    </div><!--End Container-->
  </div><!--End Wrap-->

    <footer class="main-footer">
        <span>&copy;2015 Residents of The Best City Ever.</span>
    </footer>

</body>
</html>
/* =================================
  Base Element Styles
==================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Varela Round', sans-serif;
    line-height: 1.6;
    color: #3a3a3a;
}

p {
    font-size: .95em;
    margin-bottom: 1.8em;
}

h2,
h3,
a {
    color: #093a58;
}

h2,
h3 {
    margin-top: 0;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* ---- my styles ---- */

.headline {
  margin-bottom: 0;
}

/* =================================
  Base Layout Styles
==================================== */

/* ---- Navigation ---- */

.name {
    font-size: 1.25em;
}

.name a,
.main-nav a {
    text-align: center;
}

.main-nav a {
    font-size: .95em;
    color: #3acec2;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: #093a58;
}

/* ---- my styles ---- */
.main-nav li {
  margin-top: 12px;
  margin-bottom: 12px;
}
.main-nav a {
  display: block;
}

.name {
  margin-bottom: 30px;
}

/* ---- Layout Containers ---- */

.banner {
    color: #fff;
    background: #3acec2;
}

.main-footer {
    background: #d9e4ea;
    padding: 2em 0;
    margin-top: 30px;
}


/* ---- my styles ---- */

.container {
  padding-left: 1em;
  padding-right: 1em;
}

.main-header {
  text-align: center;
  padding-top: 1.5em;
  padding-bottom: 1.5em;
}

.banner {
  text-align: center;
  padding-top: 50px;
  padding-bottom: 50px;
  margin-bottom: 50px;
}

.main-footer {
  text-align: center;
}

/* ---- Page Elements ---- */

.logo {
    width: 190px;
}

/* =================================
  Media Queries
==================================== */

@media (min-width: 769px) {

    /* ---- Float clearfix ---- */

    .clearfix::after {
        content: " ";
        display: table;
        clear: both;
    }

  /* ---- my styles ---- */
  .wrap {
    min-height: calc(100vh - 89px);
  }

  .container {
    max-width: 1150px;
    margin: 0 auto;
    width: 85%;
  }

  .name {
    float: left;
    margin-bottom: 0;
  }

  .main-nav {
    float: right;
  }

  .main-nav li {
    float: left;
    margin-left: 30px;
  }

  .col {
    padding-left: 1em;
    padding-right: 1em;
    float: left;
  }

  .secondary,
  .primary {
    width: 50%;
  }

  .tertiary {
    width: 100%;
  }





}

/* ---- my styles ---- */
@media (min-width: 981px) {
  .wrap {
    min-height: calc(100vh - 89px);
  }

  .secondary,
  .tertiary {
    width: 30%;
  }

  .primary {
    width: 40%;
  }




/* ---- Float clearfix ---- */
  .clearfix::after {
        content: " ";
        display: table;
        clear: both;
    }
}

here's my workspace

https://w.trhou.se/6i01z1vjb7

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Something I've said often is "Bonus points if you can guess basically what they're going to type before they type it.". Well done! In this case, you completed a challenge without looking at the solution at all (or at least the vast majority of it). I think that's pretty hard to beat! :sparkles:

SAMUEL LAWRENCE
SAMUEL LAWRENCE
Courses Plus Student 8,447 Points

Jennifer Nordell So I just finished looking at the solution video. I came pretty close man. Many of the styles he wrote to achieve certain results, like in the navigation and the floated columns I were different from mines, and some written in different places in the css, but the results are the same. I'm really excited. wish I knew how to post emojis here.

1 Answer

Steven Parker
Steven Parker
231,271 Points

You can post emoji's by enclosing their names between colons.

For example, :point_right: is made with :point_right:

Some of the commonly used ones (at least by me) are:   :wink: :wink:   :laughing: :laughing:   and :+1: :+1:

The markdown here seems to support most (but not quite all) of the ones found on this handy cheat sheet.