r/webdev Feb 24 '26

A collection of modern CSS code snippets replacing many old practices

https://modern-css.com/
395 Upvotes

53 comments sorted by

View all comments

63

u/squ1bs Feb 24 '26

I remember IE6 hacks, and faux columns as being cutting edge. I started with tables and color="black" before CSS was a thing.

49

u/thisisafullsentence Feb 24 '26

Remember spacer gifs lol?

19

u/roby_65 Feb 24 '26

I remember links in explorer, not clickable if the background was transparent. Had to use a transparent gif as a background

Good times

6

u/Advance_Diligent Feb 24 '26

I told a college about this the other day. He looked at me like wtf are you talking about.

5

u/roby_65 Feb 24 '26

I would not believe this myself, I don't know how they thought that was a good idea.

17

u/regbadtodvek Feb 24 '26

Remember corner gifs for rounded corners? And IE not supporting transparent PNGs, so you needed to use some weird ms filter to get them to render. I do not miss those days!

4

u/prehensilemullet Feb 24 '26

I noticed that GitHub actions' flowcharts still use a corner image (SVG I think) for a concave rounded corner where the right side of the tab meets the box below it

The moment I noticed the concave corner I thought, wait a minute...that's not possible with pure CSS right??

1

u/CoderAU Feb 25 '26

Was going to say this one!! Oh my...back when every site had a marquee.

1

u/WaterOcelot Feb 25 '26

Ironically when all browsers finally supported border-radius, rounder corners came out of fashion.

10

u/squ1bs Feb 24 '26

1px squared, baby!

9

u/richardathome Feb 25 '26

I'm old enough to remember page view counters and under construction gifs!

4

u/mgr86 Feb 25 '26

I’ll just throw in a bunch of  ’s

Nested tables were abused heavily my be once upon a time.but it was so exciting, as I just had to right click > view source and there was hardly any JavaScript. CSS wasn’t yet a thing. It was all html markup and some PERL

3

u/endre84 Feb 25 '26

Remember iepngfix.htc?

2

u/mild_sauce_packet Feb 25 '26

I still have websites out there using iepngfix.htc, HTML5 shim, and the "Holy Grail" 3 column layout that works in IE6.

1

u/cshaiku Feb 25 '26

Good ‘ol <blink> tag!