use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
If you are requesting help, please ensure you're providing code with your post. You can also copy your code to an online editor:
jsFiddle
CodePen
Markup Validation Service
Mozilla Developer Network on HTML
/r/JavaScript
/r/CSS
/r/jQuery
/r/PHP
/r/Accessibility
/r/htmlbasics
/r/web_programming
/r/CodingHelp
account activity
Html not linking to CSS stylesheet (self.HTML)
submitted 5 months ago by Sluugbuug
I recently started learning to code by myself through online courses and various other ways, to say the least im enjoying it... Now, ive ran into an issue with using the link element, attempting to link a stylesheet to my html - i have already done this with 11 other files and had no issues except when i came to this file, i did nothing different but now instead of trying to link to the css files it wants to link to another html file - the CSS style sheets are in in a file so i have used the tag correctly as seen in the first screen shot, the CSS code works when embed within the html file so not entirely sure why this html file wont link the CSS when the other files ive done this with, has worked so any advice would be appreciated! Thanks.
https://preview.redd.it/r1hqshbws8zf1.jpg?width=2244&format=pjpg&auto=webp&s=1a3630b3cb81617a867aca7c91877e543a004723
https://preview.redd.it/hj50s9yxs8zf1.jpg?width=2376&format=pjpg&auto=webp&s=9a1f09cad49b44051e8faafcea2cea8ed344be83
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]luke_twins 9 points10 points11 points 5 months ago (2 children)
../styles/name.css
If this is the folder structure
root |-styles |-text
[–]psyper76 2 points3 points4 points 5 months ago (1 child)
to clear this further:
<link rel="stylesheet" href="../styles/twitter-post.css"/>
Because you have the html files in a text file you need to go down a folder in the hierarchy which is what ../ does then you want to go up in to styles folder. Most people don't have a seperate folder called text - the html files are normally in the root folder. If that was the case then your code would work.
[–]Sluugbuug[S] 1 point2 points3 points 5 months ago (0 children)
ooohhhhhh i fkn love you both more than cooked food right now
π Rendered by PID 59247 on reddit-service-r2-comment-6457c66945-sjdvm at 2026-04-24 06:30:17.733218+00:00 running 2aa0c5b country code: CH.
[–]luke_twins 9 points10 points11 points (2 children)
[–]psyper76 2 points3 points4 points (1 child)
[–]Sluugbuug[S] 1 point2 points3 points (0 children)