Chat Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
May 10, 2026 - @439.98 (what is this?)
Activity rating: Three Stars Posts & Arts: 43/1k.beats ~ Boop! The forum will close in 561.beats! Random | Recent Posts | Guild Recents
News: :cry: Are u having fun? Guild Events: Spring Themed Projects

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  What is CSS?


« previous next »
Pages: [1] Print Embed
Author Topic: What is CSS?  (Read 168 times)
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
old-timey tunes~♪Flinstone VitaminAlways working hard!PoochKnown Apple shillcoolest melon on the web!
« on: May 05, 2026 @664.84 » Embed

There are lots of threads about CSS related things on this forum, but sometimes it's worth going back to basics and asking what the heck is this thing?  :innocent:

Is it a programing language? Is it an art form? Is it a tool?

If you met someone in an elevator and they suddenly turned to you and said "What the heck is CSS?", how would you describe it to them?  :omg:
Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: Cup o' JaneI met Dan Q on Melonland!poochLasagna
sunnyp4rk
Full Member ⚓︎
***
View Profile WWW


a moth with an internet connection
⛺︎ My Room
RSS: RSS

Guild Memberships:
Artifacts:
Joined 2026!
« Reply #1 on: May 05, 2026 @689.06 » Embed

Honestly the best way for me to describe it is to also mention HTML.

"HTML is the building blocks of a webpage, while CSS is what styles those building blocks"

Keeps it pretty simple.
Logged

Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
« Reply #2 on: May 05, 2026 @693.41 » Embed

CSS is a the primary way of describing what things on the Web should look like. That includes simple things like what fonts are used, what colour they are, which elements get borders and how thick those borders will be... through to more-complicated things like which things are visible at what time, how parts of pages are animated, and how a page adapts to fit on anything as wide as a cinema screen or as small as a smartwatch.



And, if it's a looong elevator ride:

Long ago, people used to do this kind of "design" work with HTML, but there are three problems with that:

(1) HTML doesn't provide many different tools to describe all of the different ways you might to style a web page,
(2) often you don't want to style just one page but every page on a site: separating the CSS ("design") from the HTML ("content") makes the latter reusable across multiple pages, and
(3) the reverse is also true: by separating the style from the content it becomes possible to offer different CSS, e.g. for dark mode, or to provide "themes", or to re-brand a site

Sometimes, nowadays, people try to use JavaScript to do some of the things that they probably should be doing with CSS: especially things like basic animations. They think they're being clever, because they think that this means that they only have to learn one programming language instead of two or three. But this is also a problem, because JavaScript is much more-likely to fail (and fail in annoying ways) than CSS, annoying everybody; it's also almost always slower than CSS and it's harder to write it in a way that respects people with disabilities and the ways that they use the Web (which in practice means that this kind of developer often doesn't consider these kinds of users at all).
Logged

https://danq.me/_q26t/badges/dan-q-88x31-lighter.gif https://danq.me/_q26t/badges/dan-q-88x31-peekaboo-scroller.gif https://beige-buttons.danq.dev/beige-buttons-88x31.gif https://embed-html.danq.dev/embed-html-88x31.gif

Artifact Swap: I met Dan Q on Melonland!PolyamorousBouncy Egg!Joined 2025!Lurby
futurearcana
Jr. Member ⚓︎
**
View Profile WWWArt


he/him
⛺︎ My Room
XMPP: Chat!
RSS: RSS

Guild Memberships:
Artifacts:
Joined 2025!
« Reply #3 on: May 05, 2026 @719.65 » Embed

Classifying CSS is quite hard. I would say it's primarily a styling language, describing appearance and behaviour of a structure.

CSS is often only thought about as a stylesheet for HTML, but in fact it can be used for a variety of things, like SVG and XML or even UI toolkits like GTK and Qt.

In theory you could write a CSS stylesheet describing how you want to decorate a wall in real life, or possibly even a 3d space (although I'm not sure vanilla CSS has the facilities to fully position stuff in 3 dimensions).

The funny thing about CSS is that you can use it to program logic, and even make it quite complex if you try hard enough. You definitely shouldn't, for your own sanity, but it is possible.

Then again, the kind of things you can actually do in CSS depend on what runtime will interpret it, with browsers probably being the most advanced runtimes in this regard, but other interpreters only supporting a subset of "HTML's CSS", or even supporting functionalities that are outside of the regular spec you're used to.

In summary, CSS is a beautiful auxiliary mess that can very easily drive you insane. Potentially, in two words, CSS is a Lament Configuration.
Logged

https://futurearcana.neocities.org/img/linkbacks/futurearcana.gif Come sweet slumber, enshroud me in thine purple cloak
candycanearter07
Hero Member ⚓︎
*****
View Profile WWWArt


i like slimes
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: candycanearter
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
it's tbhchansey!Goomy, I Choose You!Suck At Something September - Did It!uh oh! a pigeon got in!Artsy Candy Cane
« Reply #4 on: May 05, 2026 @732.41 » Embed

CSS is IMO closer to what a shader is: nothing on its own, but can be applied to change how something looks. Originally intended for simple tweaks, it evolves into a artform of its own.
Logged

new to oldnet be nice
https://status.cafe/users/candycanearter/badge.png https://abslimeware.neocities.org/assets/images/blinkers/penguins.gif

https://abslimeware.neocities.org/assets/images/blinkers/slimebounce.gif https://card.exophase.com/2/0/268504.png?1727352149

https://i.imgur.com/S1cx8ZZ.pnghttps://i.imgur.com/7ntZZGM.pnghttps://i.imgur.com/xKIpW2A.pnghttps://i.imgur.com/YMPbu9R.png

Artifact Swap: charry zardshoeDS Lover (replacement)Ball Creaturecards all the way down
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
« Reply #5 on: May 06, 2026 @555.88 » Embed

I'm not sure vanilla CSS has the facilities to fully position stuff in 3 dimensions

Never thought about this, but I reckon you probably could, so long as you've got a point of reference to act as your 0,0,0. top and left (or right and bottom, if you have an upper limit on space) position in two dimensions, and z-index specifies in a third... although it lacks the capacity for explicit units, so you'd need an implied unit.

Of course, it's also possible to move something in three dimensions with translation: functions translate3d(), scale3d(), rotate3d(), and - for the truly galaxy-brained - matrix3d(). All of these work in three-dimensional space with the ability to specify units, so again: so long as you have an agreed zero-point: sure, you can describe real-world style in CSS!
Logged

https://danq.me/_q26t/badges/dan-q-88x31-lighter.gif https://danq.me/_q26t/badges/dan-q-88x31-peekaboo-scroller.gif https://beige-buttons.danq.dev/beige-buttons-88x31.gif https://embed-html.danq.dev/embed-html-88x31.gif

Artifact Swap: I met Dan Q on Melonland!PolyamorousBouncy Egg!Joined 2025!Lurby
Notabot
Casual Poster ⚓︎
*
View Profile WWWArt


,,Life finds a way." Ian Malcolm (Jurassic Park)
⛺︎ My Room

Guild Memberships:
Artifacts:
Website Has Cascading StyleSheets Now !Joined 2025!
« Reply #6 on: May 06, 2026 @698.25 » Embed

Hello :D

If someone would randomly turn around in the elevator and ask me: WHAT THE HECK IS CSS??? I would beam myself out of reality bcs i dont want to talk to strangers. But if it was one of my friend i would answer: With CSS u can decide how ur website looks... unless u dont care an u want that ur website looks like a cookie without chocolate chips! (Im hungry now :cry: )
Logged
Future Roxy
Newbie ⚓︎
*
View Profile WWW


Ozwomp Fangirl
⛺︎ My Room

Guild Memberships:
Artifacts:
Joined 2025!
« Reply #7 on: May 07, 2026 @405.07 » Embed

I've sometimes shown people what css does by first showing them a website and then turning all the css off and showing the webpage again. Then I'm like "this one programming language is doing all that!". this is mainly for showing people who aren't very familiar with programming / computers in general, so you don't need to explain every other term you use.

oh and btw; you totally can do 3D stuff in css! :ozwomp:  at a conference a while back, someone showed off that they made DOOM work in css!

here's an article on how they did it:
https://nielsleenheer.com/articles/2026/css-is-doomed-rendering-doom-in-3d-with-css/

Logged
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | ~ Send Feedback ~ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi

MelonLand Nav

@000

Want to Login or Join ?

Minecraft: Online
Join: craft.melonking.net