
It is no secret that Cascading Style Sheet is no fun if you’re working long with them. Still, there are ways in CSS which got some charms as it is used in defining the designs. You can make it colorful and playful if you have a knack of humor with you.
In this post, I have come up with the best trending CSS puns and jokes. Developers like to share their funny creativity over all the social network they get their hands on. So, let’s see some the best CSS puns and jokes of all time.
The credit for the source is to https://csshumor.com/all/.
1. Feeling stressed?
|
1 |
p u b .beer { order: 1; } |
2. Developer in debt
|
1 |
.my-bank-account { content: "-$"; } |
3. This one not for Moguls Developers
|
1 2 3 |
#harry-potter.disillusionment-charm:active { visibility: hidden; } #harry-potter.invisibility-cloak:active { display: none; } |
4. The Ring Bearer: Frodo Baggins
|
1 |
#Nazgûl > .my_precious .wearer { visibility: visible; } |
5. The Iceberg Logic
|
1 2 3 4 |
.iceberg { float: top; margin-top: 10%; } |
6. The Code for your Soul
|
1 2 3 4 5 |
.soul { content: "ethereal"; opacity: 0.00000001; visibility: hidden; } |
7. A Unique Code for IKEA
|
1 2 3 4 5 6 |
.ikea { content: "furniture"; display: table; color: blue; background-color: yellow; } |
8. The Dirty Developer
|
1 2 3 4 5 |
.clean-bathroom { > p { display: none; } } |
9. Code for Blackhole!!!
|
1 2 3 4 5 6 7 8 9 |
.blackhole { background-color: #000000; display: flex; justify-content: center; align-items: center; width: ?; height: ?; padding: 0; } |

10. The Sasha Grey Code
|
1 |
.sasha-grey::after { resize: both; } |
11. The Simpson Taxes
|
1 |
#trump .federal-taxes { display: none; } |
12. A Code with Pain
|
1 2 3 4 5 6 |
body .pain { display: none; position: relative; z-index: -99999999; padding: 20000px; } |
13. Code that Defines The Euro League
|
1 2 3 4 |
#Europe .country > .brexit { border: right 1px solid; overflow: hidden; } |
14. The NSA in CSS
|
1 2 3 4 5 |
.NSA { transparency: none; content: " * "; justify-content: inherit; } |
15. The Modern Simpson Description
|
1 2 3 4 5 6 7 |
#president .trump { color: orange; position: absolute; border: 1px ridged; content: "Blather!"; cursor: crosshair; } |
16. The Creepy Code
|
1 2 3 4 |
.ghost { background-color: white; opacity: 0.2; } |
17. A Friendzoned Developer
|
1 2 3 4 |
#friendzone { float: left; margin: 1px; } |
This is the best code to define friend zone.
18. The POTUS Code
|
1 2 3 4 5 6 7 |
#DonaldTrump { position: absolute; border: ridge 1px; background-position: right; top: 1%; content: "Lies"; } |
19. The Pervert Developer
|
1 |
.bra.push-up { overflow: visible; } |
20. The Perfect Job Code for Monday
|
1 2 3 |
.monday { transition: slow ease; padding: 0 6days 0 0; } |
21. The Tummy Code
|
1 |
.potbelly { overflow-x: visible; } |
22. The Valentine Code
|
1 2 3 4 5 6 7 8 9 |
/* LESS */ .flowers { &Passion .roses; &Modesty .violets; } .underwear { &Regal .violets; &Military .roses; } |
23. The Best Way to Work The Shit Out
|
1 2 3 4 |
work:hover .mug > .mug > .mug { content: "espresso" !important; color: #591E14; } |
24. The Absolute Safari Browser
|
1 2 3 4 5 6 7 8 9 |
#safari::before { content: "Sensational!"; position: absolute; } #safari::after { content: "Brother of IE9"; position: static; } |
25. The Trump Conundrum
|
1 2 3 |
#trump.elected > .usa > .people:not(.black) { content: "Respect"; } |
26. The Party Code
|
1 2 3 4 5 6 |
.party .bottles:after { content: " "; } .party .floor:after { content: "diced carrots"; } |
27. The Dark Knight Code
|
1 2 3 4 5 6 7 8 |
#batman { background: black; float: left; } #batman:after{ content: 'robin'; float: right; } |
Web development is a very vast area and there are a lot of things to learn for and we keep learning as we move forward in web development. Sometimes new frameworks, sometimes new language updates and so on. Good thing about this course is it covers almost all important areas and make you a full stack developer.
28. Dicaprio Code
|
1 2 3 4 5 |
#oscar-2016 { content: "Leonardo Dicaprio"; icon: "oscar.png"; font: "Spotlight"; } |
29. The Widest Code
|
1 2 3 4 |
.obese { width: 200%; overflow: visible; } |
30. The Bermuda Triangle
|
1 |
#Bermuda-triangle { display: none; } |
31. The Hobbits
|
1 2 |
.hobbit { height: 50%; } .hobbit #foot { width: 200%; } |
32. The Super Mario Code
|
1 2 3 |
#mario.mushroom { transform: scale(200%); } |
33. The Star Wars Code
|
1 2 3 |
#darth-vader:first-child { transform: rotateY(180deg); } |
34. The Code Green
|
1 2 3 4 5 6 7 8 |
#bruce-banner { color: pink; transition: color 10s; } #bruce-banner.the-hulk { color: green; } |
35. The Twisting Politicians
|
1 2 3 4 5 |
.politicians { transform: rotate(180deg); transform: rotate(180deg); transform: rotate(180deg); } |
36. The Code of Marriage
|
1 2 3 4 5 6 7 8 9 |
.husband { position: absolute; right: 0%; } .wife { position: absolute; right: 100%; } |
37. Code name Bond
|
1 2 3 4 5 6 7 |
#007 { content: "James Bond"; background: none; visibility: hidden; color: black; border: none; } |
38. Popeye The Sailorman
|
1 2 3 4 5 |
.popeye + .spinach { width: 50px; height: 150px; transform: scale(10); } |
39. The Hammer Code
|
1 2 3 4 |
.human + .thor-hammer { margin-bottom: 0 !important; padding-bottom: 0 !important; } |
40. Smeagol Code
|
1 2 3 |
.gollum.hasRing { visibility: hidden; } |
Winding Up
So, these are the CSS puns which are not just my personal favourite but of almost everyone in the coding realm. I hope you like my collection. Mention your favourite one in the comment box and let’s put some smile on the faces of our developers’ mate. Cheers!!!
Author Bio:
Lauren McLaren is the writer here. She is working as blogger for Digital Muscle, is a web design company in Sydney offering affordable web design & development services. She loves writing about technical stuff and sharing her experience while with her readres. She is hardworking and trustworthy. In her spare time, she loves to read, cook and watch movies.
More Web and Mobile App Development and Related Articles:
- Learn Angular4 (formerly Angular2) - The Complete Guide
- Hybrid Mobile App Development with PhoneGap, AngularJS and Bootstrap
- Getting started with AngularJS
- Angular 2 - Beginner to Professional
- Getting started with Bootstrap
- Beginners Guide to jQuery Mobile App Development
- Exploring the Difference between Google Play Store and Apple App Store









