This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

153 points
Edbb1b36667f84f86ec537320c346f33?s=140&d=retro
Submitted by
rowwer
over 3 years ago

Link it up!...?

One question.
I am practising my coding on Notepad++ too.
I doing well so far. Until now. I am trying this CSS language. I understand all of it but one thing.

How should I link my .html file to my .css file?
How should my command line in Notepad++ look like?
My .css file is saved in my computer only.
Thanks.


0 votes

permalink

i think (not sure) but you can do internal stylesheet (i will explain in a bit) or external should be possible. i think you should use the link from codecademy but replace href with:

 href="C:\users\rowwer\documents\stylesheet.css"

and then of coursing using your location and filename.
internal stylesheet should be easy using:

<style></style>

and then put all style items inside the styletags. hopes this works, not sure

2410 points
5671826195e378c47d000782_659060817
Submitted by
stetim94
over 3 years ago

1 Comment

58d6946784deb66828d0066a5e0b3be8?s=140&d=retro SailingSouls over 3 years ago

How do people link CSS when they actually make websites?


0 votes

permalink

in the same way as here in codeacademy, the important thing is that you put both files in the same directory

365 points
543fc82f631fe988640020d7_382532424
Submitted by
Tobias Páez
over 2 years ago

1 Comment

5671826195e378c47d000782_659060817 stetim94 over 2 years ago

this post is 10 months old? how on earth did you find it?
it is not necessary to have the files in the same directory! you can do relative and absolute paths to have the files in different folders!