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
almost 4 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

2937 points
593d545c83696644420003b7_64554016
Submitted by
stetim94
almost 4 years ago

1 Comment

58d6946784deb66828d0066a5e0b3be8?s=140&d=retro SailingSouls almost 4 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
about 3 years ago

1 Comment

593d545c83696644420003b7_64554016 stetim94 about 3 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!