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 trialThomas Moore
5,301 PointsChanging 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
Tomaz Carneiro
990 PointsYou can change CSS either internally or externally.
To do it internally, just put your CSS code between style tags, like that:
<style>
foo {
/* code code code */
}
</style>
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.
Thomas Moore
5,301 PointsThomas Moore
5,301 PointsThanks, 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.
Tomaz Carneiro
990 PointsTomaz Carneiro
990 PointsOh, sorry =P