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

#How to build a web ------workspace Css

My main.css doc is so messed up, my codes have different orders from the one in the video lecture. can anyone help me with this? or send me the original main.css doc? i am currently on the course of Styling Web Pages and Navigation

tongjinbreslin@gmail.com

thanks

2 Answers

Hi Tong Jin, Hopefully you are creating the portfolio site in How to Make a Website... I am going to list the sections in main.css, and this should help you get it organized. (these are the commented out section labels in the main.css, from top to bottom) General, Heading, Navigation, Footer, Portfolio, About, Contact, Colors.

thank you! whats under the heading? I have got header, logo, h1, h2

and one more question... I wanna decrease the size of social media logo, but this code isn't working

from- html.doc

<footer> <a href="https://www.facebook.com/lindsey.jin.5"><img src="img/facebook.png" alt="Facebook logo" class="social -icon"></a> <p>©2015 金 彤 lovealways.</p> </footer>

from- main.css .social -icon { width: 0.5px; height: 0.5px; }

Is the last line of code (from- main.css .social -icon { width: 0.5px; height: 0.5px; }) copy and pasted? It looks like there is a space between .social and -icon.

Test the width and height. For example, put in width: 1px; height: 1px; Does that do anything? It should make the icons very small and almost look as if they disappeared. If you are using Workspaces, you will notice that when you change .5 to 1 the numbers change color, to red, which is valid code.

Also, under the Heading section I have the same as your list.