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

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Forum Contest: Design with the Box-Sizing Property

EDIT: This contest has ended! The next forum contest is all about creating a flexbox layout.

Hi everybody,

It's time for a new Treehouse Forum contest! First, watch this video to learn more:

After you've watched the video, please read the details below carefully. I'm looking forward to your entries!

How to Enter:

  1. First, download the final code for the Treehouse course How to Make a Website
  2. Modify the code to use the box-sizing property on all elements.
  3. Add your own customizations. Change the design and code of the project to make it your own. Be as creative as you'd like!
  4. Post a link to your project as an answer to this forum post. You can host your project anywhere you'd like.

Due Date: All entries must be submitted by Sunday, June 29th at 11:45pm ET. Here's a timezone chart so you can see what time that is for your locale.

Prize: The entries will be judged by Treehouse teachers based on both design and code. One winner will receive a free month of Treehouse Pro on us! :) We'll announce the winner on Monday, June 30th and reveal the next contest.

*

34 Answers

Anneke Crouse
Anneke Crouse
8,199 Points

This is my first competition entry! :)

anneke.esy.es

i love it

Looks very crisp and clean!

Khurram Muslim
Khurram Muslim
12,391 Points

Anneke!!

Your web seems great and appealing (Y) but I found a little bug or your code mistake on your web footer that you give twitter profile link with facebook logo and with facebook logo you gave twitter link so do correct it and once again you did a great job dear +1 :D

Anneke Crouse
Anneke Crouse
8,199 Points

Thanks guys! :) Thanks Khurram I didn't see that!

Kiersti Collins
Kiersti Collins
8,089 Points

Congrats on your website! Looked great!

Andrew Rowberry
Andrew Rowberry
3,579 Points

nice hover effect with the transparent blue, looks awesome!

Stacy Salles
Stacy Salles
3,413 Points

Congrats! It's a great looking web-design.

Ana Paula Daros
Ana Paula Daros
8,436 Points

It look really nice! Congrats!

Oliver Fajardo
Oliver Fajardo
2,853 Points

Very Nice hover effect! Future Web Developer in the Making :)

awesome

Hey there!

Here is the link to my project

Great job on the tutorials and good luck to all other participants ;)

Hi Nicole, you are coming along very well. good to see that your work is evolving well. Did you make changes to favicon..it looks a lot more like a vest now. :) Great Job!

Also, your resume, very nice. Your Graphic skills are showing brightly. I even loved the format for the resume. I would like to use it. I will give you credit, if you are ok with it.

Thanks Nicole, I will also let you know when i use it to add your logo and name as designer of the resume.

ilias Georgakopoulos
ilias Georgakopoulos
22,866 Points

Nick have you ever thought to create a video at the end of every forum contest where you will discuss our efforts and you will give us feedback?

Nick Pettit
Nick Pettit
Treehouse Teacher

This is already in the works. It may or may not be ready for this forum contest, but stay tuned. :)

A really nice design looks awesome!

I really love this :')

Here's what I came up with. Just having some fun with the contest.

When I was playing with box-sizing, it was easy to make the picture set look like Polaroids, so I went with it. Hope you all like it, and good luck!

Winning!

i think its the best so far the only problem i had was the font was sorta hard to read.

Daniel Grimes
Daniel Grimes
1,195 Points

Goncalo checked out your site and the css. You have to use border-box rather than content-box. Just in case you didn't realize you used a different one :) Cheers!

Yeah, you're right, I misread. It didn't make sense as it was, since what I configured, is in fact the default :P

Thanks for the notice, it's updated now!

Here is my work.

Michael Hicks
Michael Hicks
24,208 Points

I don't know if it's just me or if there's something wrong with your site, but I'm having trouble connecting to your site. Check it out and ask others to check as well.

I have no trouble connecting to the site. I'm currently using using a free web hosting service from a local company. Maybe that is the problem. Here is the copy which is hosted by a UK company (also a free hosting).

Michael Hicks
Michael Hicks
24,208 Points

Great! The second link you posted links properly. Like I said, it might just be me, but ask others too to make sure its working on multiple devices.

Jeffrey Watson
Jeffrey Watson
7,059 Points

Here is my entry with some php pages and updated css. Thanks http://jnwatson.com/treehouse/index.php

Stacy Salles
Stacy Salles
3,413 Points

I couldn't figure out how to create a link for this as I did it on Teamtreehouse workspaces. If you highlight, right click, and hit "Go to..." , it should take you to my project. Please let me know if there's a problem.

http://web-jep40q5s43.treehouse-app.com/index.html

Thanks Stacy

Rodger Voelkel
Rodger Voelkel
21,736 Points

Here is a site I have been working on for myself. By far not done but probably polished enough to share, any and all feedback would be greatly appreciated.

http://www.programmingjunky.com

Ashlynn Pai
Ashlynn Pai
11,679 Points

Rodger,

Your website is lovely but I think for your portfolio you should just link to your own work and not to the Treehouse website. If you want to put a little note somewhere that you learn at Treehouse, that's cool. Or if you want to put a note in the footer of your project that you grabbed code from Treehouse, I think that's fine as well.

Rodger Voelkel
Rodger Voelkel
21,736 Points

Ashlynn,

Completely agree. I just haven't added my own work to portfolio yet, the treehouse links were meant to just give credit to where i learned the various techniques. I will take your recommendations under consideration, thank you.

My Entry

Any feedback is much appreciated :)

Michael Hicks
Michael Hicks
24,208 Points

I've seen some really great entries already. Please visit my site here: http://mhicksimagine.com/

Tiffany McAllister
Tiffany McAllister
25,806 Points

Here is my UPDATED entry using Flexbox. Just don't look at it in IE ;)

Bill Hinostroza
Bill Hinostroza
19,273 Points

I'm not sure if my site would be fit for this contest but I did include the box-sizing property and it was based on Nicks' "How to Make A Website" Course.

I changed the code entirely to fit my sites needs but here is the link. http://billhinostroza.com

Ashlynn Pai
Ashlynn Pai
11,679 Points

How much of the How to Make a Website code do you have to include?

ilias Georgakopoulos
ilias Georgakopoulos
22,866 Points

Nick says: Add your own customizations. Change the design and code of the project to make it your own. Be as creative as you'd like!

You can change it completely but you will have to use the box-sizing property on all elements.

Nick Pettit
Nick Pettit
Treehouse Teacher

This is correct. You can change it however you'd like, so I guess theoretically it could be a completely different project by the time you're done. :)

Seth Barthen
Seth Barthen
11,266 Points

When I added in *{ box-sizing: border-box; } none of the format of the site changed. What exactly is that doing for us in this competition? Does it allow to do different things that we couldn't do without it? Thanks..

Herbert Lemus
Herbert Lemus
8,780 Points

what setting the box-sizing to border-box does is it make the width and height properties includes content, padding and border, but not the margin

as the content-box only includes the content and does not include the padding, border and margin

Seth Barthen
Seth Barthen
11,266 Points

So all we are doing is changing the look of the site and that's it? I understand what you mean about including the content padding and border. What I'm failing to understand is if it really changes the site at all. :/ (be nice if Nick would comment on this)

Nick Pettit
Nick Pettit
Treehouse Teacher

Hi Seth,

Great question. I wrote a blog post about box-sizing that might help explain.

Yes, that was a great question, I was wondering the same and today i read the post. Makes sense now. :) I was wondering if it would be good practice to add the box-sizing: border-box; to my grid.css if that would take the place of adding to elements that have the grid-content. Food for thought. I will give it a try.

Update: OMG it works...infact my code improved greatly. I removed all the border-box code from main css, since i was using the grid-container and just added the border -box to my grid-content class. Simple and easier to understand my own code and to make the changes I need. cool! Reading the blog post...help much with understanding border box. Well, time to research more before coding. :)

If you saw my website during the contest, the only change i made was to the main.css and grid.css with the border-boxing properties. I removed all border-box from the main.css and added only once to the grid.css..the difference was huge. Now, i can work with this and improve my site. Foundation is coming along. http://alchemymomentum.com/

Ashlynn Pai
Ashlynn Pai
11,679 Points

My index file had a wardrobe malfunction last night. I hope no one saw that . . .

Please let me know if I need a loading icon. The images load fast for me so I don't have one.

Stacy Salles
Stacy Salles
3,413 Points

I couldn't figure out how to create a link for this as I did it on Teamtreehouse workspaces. If you highlight, right click, and hit "Go to..." , it should take you to my project. Please let me know if there's a problem.

http://teamtreehouse.com/workspaces/569932

Thanks Stacy

Stacy Salles
Stacy Salles
3,413 Points

Well that didn't work, that just leads you to the code. Can someone tell me how you are all uploading your pages?

Thanks,Stacy

Stacy, you're supposed to upload your pages to some hosting of your choice. Then you just link the address of your site. You can use this company's service (it's not an ad, I'm just willing to help). After clicking on a confirmation link in a mail you'll be redirected to the page where you can select a hosting plan. There's one free and two paid. Then you register a subdomain (I'm guessing you don't have your own). After that you'll get to a page with all your registered hosting accounts. Just click + to the left of the domain name you've just registered. Choose manage and you'll get another page. There you pick File Manager 2 if you want to get ftp access via web interface or FTP Access if you want data needed for your ftp client to access the server. Having accessed the server go to the public_html folder, delete default.php there and upload your project files there. After that just link the domain you've registered here using the Markdown Cheatsheet. I tried my best and hopefully I didn't confuse you.

Ashlynn Pai
Ashlynn Pai
11,679 Points

If it's one page you can just use codepen and host your images at imageshack or a free image site.

ilias Georgakopoulos
ilias Georgakopoulos
22,866 Points

Stacy you have to upload your site to a web hosting provider. You can search for free solutions or buy your own space. Also you can host your own site from your pc. If you cant find a way for now and you want upload it i can do it for you and give you the link.

Stacy Salles
Stacy Salles
3,413 Points

Thanks all for the upload advice. I have a website with godaddy, but wanted a place where I could throw up my sample projects without having to worry about another cost.

Stacy

ilias Georgakopoulos
ilias Georgakopoulos
22,866 Points

If you already have a website you can create a folder in it (where you have your index.html, name the folder whatever you want) and in this folder add all the files of the project. Then type in your browser www.yoursite.com/the folder you created and you are good to go. When the project is finished you can delete the files. No additional charges.

Ratik Sharma
Ratik Sharma
32,885 Points

Here's my entry: site

All the best, everyone!

calen chen
PLUS
calen chen
Courses Plus Student 534 Points

Hi there's my site, a simple layout, based on box sizing only.. thanks here's the links. http://web-fssos55c7u.treehouse-app.com/

Stacy Salles
Stacy Salles
3,413 Points

Thanks Hennaday and iliyas for your suggestions. My Godaddy account is a webpage builder so there are no html files for me to get to (I called and asked). Signed up for Hostinger, receive their email, but the site just isn't opening for me today so I can upload my sample. It was a great contest and I will pat myself on the back for doing it and succeeding. Good luck with the contest all. And Yayyy TeamTreehouse. I love it!

Khurram Muslim
Khurram Muslim
12,391 Points

Hey Stacy!!

Go to that link byethost.com/index.php/free-hosting

and you can host it right now just signup and they send you details about host address,username etc on email also (I received on my spam folder) and then you can upload files using filezilla to server and it is done, your web is accesible throughout world (particularly through this you can participate in contest now)

Everything has solution by the way ;) ;D

Hope you'll participate, maybe?

Nick Pettit
STAFF
Nick Pettit
Treehouse Teacher

Another week, another forum contest, and another round of amazing entries! All of you did a really great job. :) Remember, entering forum contests is a great way to practice and build up your portfolio of work at the same time. Hang on to these projects, because you never know what might help land you a position.

This week's winner is Anneke Crouse. Congrats, Anneke! Her entry was really well designed and the code is elegant and works cross-browser. She also did a great job being creative and expanding on the original concept, which helped demonstrate her skill.

The next forum contest is similar to this one: Create any project you'd like using flexbox!

Anneke Crouse
Anneke Crouse
8,199 Points

Oh yay! :D Thanks Nick and Treehouse. I really enjoyed this challenge! Good job to all the participants! See you all in the next round!

Congrats Anneke and to everyone who entered this contest. Your work was inspiring. I hope one day to be able to design a site as good as the ones I've seen here.

Cheers,

Steve

Congrats Anneke, and to all that entered this contest. I've enjoyed looking at everyone's inspirations which gives me the courage to hope that one day I too will acquire the skills to create designs such as these and more.

Rae