Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Introduction to HTML and CSS Make It Beautiful With CSS Select and Style by Class

3 Answers

Jacob Wilson
seal-mask
.a{fill-rule:evenodd;}techdegree
Jacob Wilson
Full Stack JavaScript Techdegree Student 522 Points

Hello, I am very new but had the same problem. I saved my new code in CSS but did not save the work I had done in HTML just before. Once I saved both in their separate HTML and CSS pages and then refreshed the profile it centered. I thought saving in one would save for both HTML and CSS but it doesn't. I know this is late but maybe it will help some one.

This is great advice, Jacob Wilson ! It's always a good idea to make sure that you've saved both the CSS and HTML file!

Here are some quick keyboard shortcuts to keep in mind when following along in workspaces. Note that the "Control" button in Windows is often just typed as "CTRL" (and can usually be found in the bottom left corner of your keyboard), and on Mac computers you find the "Command ⌘" or "Cmd" button just immediately to the left or the right of the space bar. When you see a shortcut written as CTRL + S or Cmd + S this means that you should hold down the control or command button while you press the letter S.

Microsoft Windows

Save the current file: CTRL + S

Undo your last edit: CTRL + Z

Redo your last edit: CTRL + SHIFT + Z

Find a match in the current file: CTRL + F

Increase Font Size: CTRL + 9

Decrease Font Size: CTRL + 8

Mac / OSX

Save the current file: Command + S

Undo your last edit: Command + Z

Redo your last edit: Command + SHIFT + Z

Find a match in the current file: Command + F

Increase Font Size: Command + 9

Decrease Font Size: Command + 8

Nick Pettit also has a really great introductory video to help you work effectively with Workspaces! Check it out here!

Roberto Reyes
Roberto Reyes
1,865 Points

After about an hour and a half... I finally fixed it!! What you want to do is instead of writing .card-title on CSS write h2. This will make both "Background" and "Goals" align to the center on the webpage. Go back on CSS, delete h2, and rewrite .card-title.... your welcome!

Rodrigo Mendoza Vazquez
Rodrigo Mendoza Vazquez
2,669 Points

I have the same issue. I've saved both the html and css and nothing happened . can someone help me out here please. thanks.