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 Mobile-First CSS Layout Mobile-First CSS Layout Creating a Layout Wrapper

Tony Idehen
Tony Idehen
8,058 Points

My style.css file is empty (re: Creating a layout Wrapper)

There is no code written in my style.css when I lunched the workspace for this topic. Help needed please...

4 Answers

I'm not sure if this is the starter, or code that I entered when I went through the videos, but this is what is in my style.css file in my workspace:

/* ================================= 
  Base Element Styles
==================================== */

body {
    line-height: 1.6;
    color: #3a3a3a;
}

a { 
    color: #fff;
    text-decoration: none;
}

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

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

.main-header {
    background: #3acec2;
}

.main-footer {
    padding: 2em 0;
    background: #d9e4ea;
}

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

Have you tried deleting the workspace and relaunching it from the video?

Tony Idehen
Tony Idehen
8,058 Points

Thanks JB30 and Jason Larson for your response, I tried to close and re-launch severally, unfortunately nothing in my style.css. Please if you don't mind can you copy and paste the entire file onto this forum just as Jason did? That will be helpful. It seems like I must have erroneously deleted the content of the file or something else happened.

Thanks in anticipation.

The code that Jason Larson posted is the same as the starter code I have for style.css.

If you click Workspaces in the top menu bar, then you get a list of all of your workspaces. It also gives you an option to delete a workspace rather than just closing the workspace.

Tony Idehen
Tony Idehen
8,058 Points

Thank you Jb30.