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 Build a Blog with Jekyll and GitHub Pages Hosting with GitHub Pages Using Your Own Domain Name

Changing the CSS of the site

Working with the Jekyll blog, I was wondering how to change the CSS of the site? I have the same set up as Guil does at the end of the lessons.

1 Answer

You can change CSS either internally or externally.

To do it internally, just put your CSS code between style tags, like that:

   foo {
        /* code code code */

But if you want to change CSS externally, using a file like something.css, you have create that file, put your CSS code in it (do NOT use style tags in that case), and link your .html file to it using a link tag inside the head of your HTML. Your link tag should look like this:

  <link rel="stylesheet" type="text/css" href="something.css">

Where "something.css" is the name of your file.

Thanks, but I'm talking about uploading it to Github pages and using Jekyll it is changed to SCSS without using the external style sheet provided.

Oh, sorry =P