Skip to main content
Main Content

[OUTDATED] ★ Tetra's CSS Guide ★

Posted 2021-11-09 20:54:12 (edited)
Hi! I seem to be having issues implementing my CSS, every time I try to upload the CSS: link
it gives me an "invalid CSS file" error. :< I'm not quite sure what I did wrong, as I'm very new to this, but I don't see to see any spelling errors or missing brackets (checked using the CSS linter, fixed red errors)
Any help is greatly appreciated <3

DucksDefyGravity
#38017

Posted 2021-11-09 20:59:41
@DucksDefyGravity
Hello, the "linking the file" section is outdated as the guide has been written long before the HTML update provided the CSS Files field. For today, the only difference is that you must paste just the URL itself into the CSS Files field.
Instead of the link rel stylesheet fancystuff all you need to do is stop at the "uploading the file" section and use the CSS link itself, which should look like an ordinary browser link but with .css appended to the end of it.

*barks at you*
#202

Posted 2021-11-09 21:02:14 (edited)
@2+0=2 #202
Ohhh- that makes a lot of sense now! ^^ Thank you so much! :)
I'll try it and hope it works. :D

Update: No longer getting the error message, but it won't show up on my den page, still determined to find my error. ^^
This is what I have so far: link :)

DucksDefyGravity
#38017

Posted 2021-11-09 21:17:23
It seems you have forgotten to change the www bit in your link to dl.
Visiting the link as-is sends me to a login prompt, which is what Wolvden is being directed to when you feed them this link. Simply use dl instead and the CSS should show.

*barks at you*
#202

Posted 2021-11-09 21:21:59
Just tried it out as
" https://dl.dropboxusercontent.com/s/b4ewlnr7bbj265z/TES.css?dl=0 " still to no avail. :P
Is it possible it won't show because it needs the !important modifier?

DucksDefyGravity
#38017

Posted 2021-11-09 21:30:16
Oh, I found the issue... all of your code is commented out. Remember that putting anything between /* and */ will make the contents invisible to the browser as it reads your code, and since you seem to have put that around each of your property-value pairs, none of them will work.

I'm not sure if you've been using the Stylus editor, but the color-coded interface can help you discern between what will be invisible to the browser and what won't. Example:


By default, unless using a different theme, comments are shown in a brownish color. Notice that the brackets are black and the selectors are in color; those indicate what the browser actually sees. The exclamation marks tell you that the rule is empty, so what the browser is reading between the functional brackets is just emptiness.


Now with the commenting removed around the property-value pairs, the warning exclamations disappear and the text is in color, signifying that the browser can read what's inside the brackets without returning empty styling. Notice that the description sentences above are still commented. Commenting is otherwise reserved for when you wanna just write personalized notes on a portion of code to keep track of its purposes; in this case, these sentences would be very invalid if the browser were to read them, so they're left invisible, meant only for personal recordkeeping and such.

*barks at you*
#202

Posted 2021-11-09 21:34:36 (edited)
Ohhh- that makes a ton of sense now... ^^;
I'll have to go over all of it and rearrange well.. everything xD
Thank you so much for all the help!! ^w^

Update #2: It works! :)

DucksDefyGravity
#38017

Posted 2021-11-11 17:13:42
Hi! Sorry to bother again but, I seem to be having problems with opacity that I can't quite figure out.
After messing with opacity, I've finally managed to change the main color box (which is normally a dark grey on dark mode) to show my background image, but it changed the opacity on well, everything.

As seen in a screenshot here: link
Here's the current code ^^ link
Any help or tips is greatly appreciated ;w;

DucksDefyGravity
#38017

Posted 2021-11-13 00:20:37
It seems you've set #main to an opacity of 0.5, note that the opacity property changes how opaque the entire element is, so unfortunately that will make the site go Spooky Ghost Mode and become semitransparent.

If you wished to change the background opacity of #main without changing that of the rest of the content, that's done using the background property and by taking advantage of RGBA color code, like so:
background: rgba(0, 0, 0, 0.5);

This makes the background of #main a semitransparent black. For a semitransparent white, this would be:
background: rgba(255, 255, 255, 0.5);
And so on.

*barks at you*
#202

Posted 2021-11-13 11:17:55
Ohhh- I see now. :0
As much as I love spooky ghosts, an only transparent background would be much better xD
Thank you so much for all the help and patience. ^^

DucksDefyGravity
#38017

Search Topic