r/programming • • Jun 24 '14

Simpsons in CSS

http://pattle.github.io/simpsons-in-css/
2.2k Upvotes

371 comments sorted by

543

u/kelinu Jun 24 '14

It's funny how people can do this and even freaking 3D graphics on the web yet I can't get elements to centre on a page without breaking everything.

394

u/Cuddlefluff_Grim Jun 24 '14

"Want to vertically center something? TOO BAD, FUCKER!" -w3c

40

u/Norci Jun 24 '14

I'll be just sitting in my corner, waiting on flexbox to become standard.. ;(

→ More replies (5)

49

u/Town-Portal Jun 24 '14

I know this might be a joke post, but here is how i vertical align everything.

.children
{ top: 50%; transform: translateY(-50%); }

Easiest way to vertically align any object, even unknown heights.

19

u/prajo2 Jun 24 '14

That's great, but still seems like a workaround to me. Why can't we just have vertical-align: middle?

17

u/Seeders Jun 24 '14

The problem here is three-fold:

  1. HTML layout traditionally was not designed to specify vertical behavior. By its very nature, it scales width-wise, and the content flows to an appropriate height based on the available width. Traditionally, horizontal sizing and layout is easy; vertical sizing and layout was derived from that.

  2. The reason vertical-align:middle isn't doing what is desired is because the author doesn't understand what it's supposed to do, but …

  3. … this is because the CSS specification really screwed this one up (in my opinion)—vertical-align is used to specify two completely different behaviors depending on where it is used.

http://phrogz.net/CSS/vertical-align/

6

u/Town-Portal Jun 24 '14

Agree, but i just work with the tools i am given.
Also, vertical-align: middle works for some stuff, text etc.

4

u/thisisafullsentence Jun 24 '14 edited Jun 24 '14

You can with 2 inline-block elements next to each other:

.one { display: inline-block; height: 100%; vertical-align: middle }

.two { display: inline-block; vertical-align: middle; }

Dynamic heights! woo

Edit: Japanese flag example on Plunker

4

u/alexanderpas Jun 24 '14

Try this and be surprised:

html, body {
  height: 100vh;
}
<element> {
  height: <value>;
  margin-top: auto;
  margin-bottom: auto;
}
→ More replies (2)
→ More replies (3)

19

u/SquareWheel Jun 24 '14

Interesting technique. Transforms are still pretty unsupported, sadly.

I wait patiently for the day that the majority of users are on auto-updating browsers.

→ More replies (9)
→ More replies (6)

144

u/lobehold Jun 24 '14 edited Jun 24 '14

Use tables.

Edit: Downvote me all you like, you can choose between using a table or 20 divs with strange CSS hacks to get them to barely vertically center which breaks in strange edge cases.

People say don't use table for layout because it's not "semantic", but neither is using a shit ton of divs. There is also no consequences if you want to restyle because you can change the "display" property of tables to act like divs but not vice versa due to lack of browser support for the different variations of display: table, table-row, table-cell.

And I haven't actually seen any real-world harm in using tables for layout when done with restraint. I think a lot of people just read some old articles about "tables are bad" from outspoken web designers and regurgitated that back out as if it's their own opinion.

43

u/CSMastermind Jun 24 '14

There are definitely cases where tables are way easier, the trick is using them sparingly.

20

u/lobehold Jun 24 '14

Agreed, table should be used only when it makes sense, the point is that sometimes it DOES make sense to use tables.

I think a lot of people went from one extreme (use tables for everything) to another (no table for layout ever, even if it meant doing extremely backwards-bending, convoluted CSS hacks that barely works).

9

u/Neebat Jun 24 '14

Spare the table, spoil the child element.

26

u/Carlos_Sagan Jun 24 '14

I hate tables. I use this instead.

<div style="display:table;">
<div style="display:table-cell; vertical-align:middle;">
     Your vertically centered content.
</div></div>

19

u/drysart Jun 24 '14

You're turning divs into a table through CSS, so all you've effectively done is changed the name of the HTML element you use. I don't see how that's a "better" solution on any level.

14

u/Carlos_Sagan Jun 24 '14

Well a table usually has unique styles in the stylesheet. It's easier to start with a plain div than it is to remove all of the default table styling.

→ More replies (1)
→ More replies (8)
→ More replies (14)

12

u/Nickoladze Jun 24 '14 edited Jun 24 '14

Tables make your website really difficult for screen readers (blind people). They think you're trying to display tabular data with named columns (the thing that tables are supposed to do).

If you're just trying to center some text, the screen reader would say something like "row 1, column 1, blank. row 1, column 2, Welcome to My Website! row 1, column 3, blank". What a nightmare.

14

u/lwl Jun 24 '14

That argument was made in the first book about HTML I bought, 12 years ago. I bet it's a tricky problem to solve, but in that time screen reader designers could have come up with some workarounds at their end.

→ More replies (4)
→ More replies (1)

2

u/sharrice Jun 24 '14

I think the point is that using tables to center certain things is considered a hack. I'd much rather use flex-display, or try auto margins before I think of using tables.

2

u/sizlack Jun 24 '14
display: table-cell
→ More replies (25)

0

u/[deleted] Jun 24 '14

[deleted]

→ More replies (1)

41

u/[deleted] Jun 24 '14

I don't know if it's just me but CSS feels horribly non-deterministic. After googling for solution to problems for half a hour it's usually.

  1. The stylings do nothing because you have a slightly different order of elements or you've hit an edge case scenario.

  2. They horribly break something else that would require 5x the amount of work to fix.

  3. 1 out of 10 times it works after fiddling around with DOM inspector and tweaking. But it's a hack that is not IE compatible or even the recommended solution. But hey, it works.

21

u/[deleted] Jun 24 '14

CSS can be a biggoh pain in the ass, definitely when you don't fully understand how it works. I've been doing frontend web dev for about a decade and I still get into pickles like you describe. Here's some quick tips that may make your life easier:

  1. The most-specific selector wins, i.e. styles under .foo will be overwritten by the styles of .foo a or #bar. IDs are more-specific than classes.

  2. Add a class to those elements or an ID to their container so you can pinpoint your styles or figure out a more-specific selector.

  3. There's always a solution that works, even if its just using an image and saying "fuck it!" And if you have to sacrifice a bit of user experience on IE7, so be it.

Also, using SASS or LESS can help a ton. I suggest using them, but only after you have a firm grasp on normal CSS. Here's my favorite Windows compiler (less and sass): Prepros.

*Prepos works for OSX too, neat.

→ More replies (2)

5

u/ToucheMonsieur Jun 24 '14

Agreed. For styling ui's, I find CSS ridiculously unintuitive and full of hacks for any non-trivial project. I'm aware this is probably due to a lack of experience, and CSS isn't just designed to style ui's, but 'tis still rather aggravating at times. The syntax isn't bad compared to many of the alternatives (declarative XML styling, anybody?), but how CSS actually functions never really aligns to expectations.

5

u/sizlack Jun 24 '14

Usually the problems are caused by too much CSS. Most developers just pile on HTML5 Boilerplate, Bootstrap, and whatever else, then half their styles are overriding the styles in the stupid frameworks they're using. And they don't know how CSS really works, so they have no idea how to organize their code or encapsulate their styles properly. CSS is deterministic. It's just that so few people bother to really learn how it works that 99% of the code they write is absolute shit.

2

u/[deleted] Jun 26 '14

CSS's biggest problem is it conflates typography, layout, appearance and document tree queries into one language with the naming consistency and backward compatibility tarpit-ness of PHP. The resulting product, as you've noted, is TOTALLY AWESOME AND FUN TO USE

5

u/ggggbabybabybaby Jun 24 '14

Easy, just force everyone to browse your website with IE6 at 1024x786. Show an error message for everyone else.

6

u/x86_64Ubuntu Jun 24 '14

It shows what groups and the problems they believe are important are driving the web standard.

→ More replies (7)

582

u/Uberhipster Jun 24 '14

290

u/deforest_gump Jun 24 '14

Expected worse. Much worse.

0

u/[deleted] Jun 24 '14

[deleted]

175

u/adamrgolf Jun 24 '14

You can use this IE6 simulator to test it out.

73

u/Walter_Bishop_PhD Jun 24 '14

I love how that site has multitouch support, so you can drag many error windows at once

→ More replies (3)

20

u/Timmytimftw Jun 24 '14

just found my new homepage

→ More replies (5)

53

u/gmfreaky Jun 24 '14

8

u/weedroid Jun 24 '14

was extremely surprised to see a gradient on Ned Flanders' 'tache but then I remembered that the CSS for gradients in IE was the same from 6 to 9:

filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=0 );

what godawful syntax

→ More replies (1)
→ More replies (1)

33

u/Katastic_Voyage Jun 24 '14

Here's IE 5 in Windows 98 SE

http://i.imgur.com/9rzlibZ.png

It's hard to capture much since everything gets moved to a vertical alignment.

24

u/Distractiion Jun 25 '14

Here's IE 4 in Windows 98.

It's like the Atari era all over again.

11

u/xgad Jun 25 '14

Perhaps IE4 is just into minimalism?

→ More replies (1)

17

u/crunchmuncher Jun 24 '14

I don't know if this is surprising, but this is also much better than I expected.

→ More replies (1)
→ More replies (1)

8

u/[deleted] Jun 24 '14

Do you WANT the internet to break? Because that's HOW you break the internet!

→ More replies (2)

105

u/unaligned_access Jun 24 '14

38

u/Ayavaron Jun 24 '14

The ie8 is still cute, just in a different way.

30

u/Fazer2 Jun 24 '14

Failure is just another kind of success. A wrong one.

→ More replies (1)

67

u/allthediamonds Jun 24 '14

Still recognizable, nonetheless. Interesting.

0

u/[deleted] Jun 24 '14

[deleted]

60

u/Norci Jun 24 '14

More like power of {position: absolute;}.

16

u/fattredd Jun 24 '14

I think my new favorite text face is now ;}

→ More replies (1)

45

u/Ayavaron Jun 24 '14

It looks almost exactly like the way they depicted video games on the show back in the '90s, when they had the animators hand-draw the jagged outlines haphazardly to simulate the appearance of contemporary pixel art video games.

SEE ALSO: This list of references to video games in the Simpsons, replete with broken links to videos of the fictional games discussed.

5

u/scriptmonkey420 Jun 24 '14

Not one of those videos are around any more :(

2

u/fgutz Jun 24 '14

I was very excited to go through them and then was very disappointed.

31

u/CritterNYC Jun 24 '14

44

u/ExcellentGary Jun 24 '14

Ah, there they are. Bort, Hamer and Mudge.

13

u/zeekar Jun 25 '14

The Sempsuns.

8

u/cosmicr Jun 25 '14

My son is also Bort.

2

u/erlEnt Jun 24 '14

Is that windows 98?

5

u/CritterNYC Jun 24 '14

Windows 2000. I have it sitting in a virtual machine in VirtualBox for testing. Though I don't test under it anymore so I'll likely retire it soon.

32

u/micru Jun 24 '14

homr pls

6

u/schrik Jun 24 '14

Etch-a-sketching the Simpsons

4

u/nokarma64 Jun 24 '14

Season 1.

6

u/virtualmarc Jun 24 '14

Better than I thought. IE11 also has some small problems :D

→ More replies (1)

12

u/cixeltree Jun 24 '14 edited Jun 24 '14

Putting the following tag under <head> should force IE-9 compatibility mode and prevent that from happening in some cases:

<meta http-equiv="X-UA-Compatible" content="IE=9"/>

Stuff like the SWT browser widgets from Eclipse will default to a stupid low compatibility mode and eat CSS alive unless either webkit or mozilla was specified as the engine.

... what were the downvotes for? Am I missing something? seriouslywhat

8

u/CSMastermind Jun 24 '14

Guess people don't like their preconceived notions challenged?

→ More replies (3)

2

u/terrinorris Jun 24 '14

Ah, the old Tracy Ullman days!

2

u/fgutz Jun 24 '14

Selectivzr should help with that

2

u/Raumschiff Jun 25 '14

Window's flat and blocky new layout scheme starts to make sense now …

1

u/AdamGartner Jun 24 '14

I CANNOT!!!!!

1

u/Cataclyst Jun 24 '14

Picasso!

1

u/Twilight_Scko Jun 24 '14

Works great in IE11.

1

u/dizzyzane Jun 24 '14

This kills the circle.

1

u/[deleted] Jun 24 '14

Memory implants for my next nightmare.

1

u/zeekar Jun 25 '14

OK, this is my new favorite demonstration of what's wrong with IE's old rendering model. :)

1

u/Banane9 Jun 25 '14

MODERN ART!

1

u/Internetto Jun 24 '14

This embodies my opinion of IE

2

u/fdg456n Jun 24 '14

Looks great in IE 11.

→ More replies (3)

50

u/Philipp Jun 24 '14

Might be of interest, once did some face growing in HTML5 Canvas. The face you click on mutates into random new ones, evolving with every new pick...

89

u/sTiKyt Jun 24 '14

I've done it! Success!

http://imgur.com/K22ImhN

10

u/TaxExempt Jun 24 '14

Godwin always shows up in every thread.

4

u/thegools Jun 24 '14

You know who else showed up in every thread?...

6

u/Appathy Jun 24 '14

Broken arms?

→ More replies (1)

1

u/Atario Jun 24 '14

Chick Hitler is unamused by your shenanigans

15

u/Ian1971 Jun 24 '14

The way they are subtly moving is freaking me out.

5

u/Arcanz Jun 24 '14

Hah, I like it. I'm a fan of evolving algorithms. Though I must say the first thing I did was make it evolve as ugly as possible then try to undo it.

5

u/tskazin Jun 24 '14

You will then like my game that I made called Simpians .. its an evolutionary breeding hunter-gatherer simulator :)

4

u/jana007 Jun 24 '14

I made Captain Planet with a creeper-stache http://i.imgur.com/771pIiB.png

4

u/rspeed Jun 24 '14

Not quite a Simpsons character. 1-BDI

145

u/allthediamonds Jun 24 '14

If you zoom in the browser, they start looking at you weird. http://cl.ly/image/1T3o0Q1O181i/Screen%20Shot%202014-06-24%20at%2011.34.28.png

83

u/hudsonab Jun 24 '14

Apparently zooming in raises their suspicions.

31

u/Caminsky Jun 24 '14

Yeah is like "they know"

5

u/geecko Jun 24 '14

They're just high, is all.

23

u/AltF4me Jun 24 '14

I couldn't repro that in Chrome or IE11?

7

u/BonzaiThePenguin Jun 24 '14

Happens to me on Chrome.

5

u/alkavan Jun 24 '14

Does not happen in Chrome 35 for me.

6

u/xylotism Jun 24 '14

Jesus Christ are we really at 35?

7

u/Appathy Jun 24 '14

Just time to move the decimal.

35 -> 3.5.

5

u/NeoKabuto Jun 25 '14

They're racing with Firefox to see who can make a version number high enough to overflow first. You'll know who won when you see Chrome -32,768.

→ More replies (2)

7

u/allthediamonds Jun 24 '14

Uh, perhaps it's a Safari thing.

5

u/bigwhitedude Jun 24 '14

Can confirm: Safari

Cannot Confirm: Chrome

2

u/[deleted] Jun 24 '14

I can reproduce it in FF30 on Fedora 20.

3

u/sequentious Jun 24 '14

I can't reproduce it in FF30 on Fedora 20.

However, if left alone, they blink intermittently, and the animation may be smoother at different zoom levels. Much smoother on mobile, though (next browser on a nexus 5)

2

u/[deleted] Jun 24 '14

Weird... I can't reproduce in FF30 on Windows 7.

→ More replies (1)

2

u/[deleted] Jun 24 '14

Not in Firefox

2

u/nothis Jun 24 '14

Not while zooming (although you can clearly see a few rough edges, too), but Itchy has weird stuff on his head, for example. It looks like some kind of ellipses they use for concave outlines get drawn fully where they should just cut off an outline.

2

u/norsurfit Jun 24 '14

Marge is giving me the "come hither" eyes...

1

u/therealjohnfreeman Jun 24 '14

I think it's just stuck blinking.

→ More replies (1)

31

u/jfb1337 Jun 24 '14

Now let's make a whole episode in pure CSS.

11

u/WisconsnNymphomaniac Jun 25 '14

It would be faster to do it with stop-motion animation at 60 frames per second.

21

u/mivfx Jun 24 '14

Mr Burns is winking me. (blinking only with one eye)

27

u/[deleted] Jun 24 '14

Hello Smithers... you're quite good... at turning me... on.

8

u/stevedry Jun 24 '14

Uh, you probably should ignore that.

59

u/pellets Jun 24 '14

How about SVG?

37

u/RenaKunisaki Jun 24 '14

But then how would you get those nice random lines around the edges of things?

11

u/ggggbabybabybaby Jun 24 '14

Whatever happened to SVG? I feel like we talked about it a lot for a while and then it just went quiet.

13

u/ggtsu_00 Jun 24 '14

Now that it is used everywhere, it's boring and not worth talking about anymore. Just like html5 video tags.

8

u/WisconsnNymphomaniac Jun 25 '14

You mean use a technology designed for this exact purpose? Preposterous!

→ More replies (5)

13

u/[deleted] Jun 24 '14

I have a question, are these drawn and generated by user using a WYSIWYG editor, or was it trial-and-error with all code?

28

u/davedontmind Jun 24 '14

There's a link at the bottom of the page which takes you to a description of how he did it

7

u/sbrick89 Jun 24 '14

yes, but does it explain WHY he did it :)

14

u/Taneb Jun 24 '14

Is that really a question that needs to be asked?

→ More replies (4)

1

u/[deleted] Jun 24 '14

Thanks, I missed that!

8

u/00aeef Jun 24 '14

I'm not aware of any WYSIWYG/design tool that'd be able to export these as pure CSS like that, so I assume they're done by hand in code by trial-and-error.

Which must have been an incredibly tedious and painstaking process.

4

u/viligante8 Jun 24 '14

Photoshop CS6 will output CSS (so I have heard) but I do not know the accuracy or usefulness of this feature.

5

u/00aeef Jun 24 '14

Interesting, didn't know that.

Out of curiosity I tried it. With this sample image, this is the output: http://jsbin.com/lupanaca/1/. Sooo... it just does squares.

→ More replies (2)

2

u/hey_suburbia Jun 24 '14

Google Web Designer does exactly this: https://www.google.com/webdesigner/

13

u/cparen Jun 24 '14

Simpsons in CSS didn't impress me. What impressed me was that it loaded instantly without lagging my phone. I didn't know cool CSS hacks could be done so efficiently.

1

u/Banane9 Jun 25 '14

I was surprised too...

10

u/Hypersapien Jun 24 '14

They did Itchy but not Scratchy?

11

u/articx Jun 24 '14

RIP Scratchy

10

u/nkals722 Jun 24 '14

Ok so each one of those looks like around 500+ likes of css (without being minified). You get 15 of those bad boys on a page and its somewhere around 7500+ lines of code just to display them.

My question is: Is it better to do it that way vs creating a gif about 2kb large? I realize this is probably more a proof of concept, but I have a hard time wrapping my head around that many lines of code vs doing something like that in Photoshop (or hell, even paint).

Extremely cool regardless, though!

5

u/cafeRacr Jun 24 '14

It reminds me of making graphics using basic back in the 80s. You basically went through and turned on pixels one at a time. Once color was introduced it was even more of a nightmare. We were gluttons for punishment.

1

u/oreito Jun 24 '14

Jesus H. Christ, really?? That sounds like an absolute pain in the ass. How long would certain types of jobs take? This is something you will definitely tell your grandchildren, right?

→ More replies (1)

1

u/mailingpie Jun 25 '14

Using rough metrics:

I saved one of his 600 line css files (bart) as a notepad and found it to be about 12 kb.

A random png. file i found of bart is about 30 kb for comparison. (larger and higher quality too) Equivalent images of bart were somewhere around 10-15 kb also.

These are really rough estimates but I really don't see anyone hopping onto this as a legitimate way of compressing images.

10

u/sharknice Jun 24 '14

This is cool and all, but he basically just created SVGs the hard and less supported way by using divs and css. And if his only goal was to be able to change the color of their faces you can do that with SVGs as well.

2

u/Isvara Jun 24 '14

Yeah, I'm not sure what the point is. To show that you can create arbitrary vector images using CSS? We've known that for a while now. As a technical exercise? Okay, well done, I guess. As a way to be able to change the colors in a vector image? SVG, as the parent post says. Then they wouldn't look so wonky either.

8

u/tpcstld Jun 24 '14

The random pixel makes me itch.

1

u/[deleted] Jun 25 '14

Apparently, it's the mouth.

11

u/[deleted] Jun 24 '14

It's cool but for some reason this just kind of pisses me off. It reminds me how dumb the CSS and HTML standard still are in a lot of ways.

→ More replies (5)

66

u/moopet Jun 24 '14

Very pretty. But this tendency to refer to adding a bucketload of DIVs and calling it "pure CSS" needs to die.

30

u/ericanderton Jun 24 '14

May as well use SVG at that point.

3

u/jrkirby Jun 24 '14

First thought when I saw this: Isn't this what SVG is for?

1

u/[deleted] Jun 24 '14

May as well use SVG when you're doing a CSS proof of concept for fun?

Relax. No one is really using CSS for this.

→ More replies (7)

78

u/RICHUNCLEPENNYBAGS Jun 24 '14

CSS pretty much works by styling HTML elements; how are you gonna do it in CSS without HTML elements

36

u/lowleveldata Jun 24 '14

while that's true I feel it was pretty much writing HTML for CSS at this point. Might as well use some sweet canvas if you gonna do that HTML work

→ More replies (8)

25

u/moopet Jun 24 '14

You're not. But if something was "pure CSS" then you could apply it to whatever HTML you wanted and it'd be good to go. If you're going to go this route, you might as well make a massive grid of pixels out of divs and just colour them in.

20

u/skztr Jun 24 '14

"pure CSS" would mean being able to define the common elements and style them appropriately using only CSS, no manipulation of the document structure.

They all have hair, eyes, a nose, a mouth, ears, which are all parts of a head. Define only those elements, exactly the same way for each character, and style them differently based on their parent (eg: .homer .head), and I will be impressed.

Failure to admit where structure ends and style begins is a major reason behind a lot of needless wasted time when implementing anything on the front-end. This is the reason I stick to back-end / interfaces as much as possible.

5

u/RICHUNCLEPENNYBAGS Jun 24 '14

Well nothing I've seen really meets that definition.

10

u/skztr Jun 24 '14

that's because all front-end developers are horrible people

→ More replies (2)

2

u/kryptobs2000 Jun 25 '14

That wouldn't scale though.

7

u/elsyx Jun 24 '14

I was pretty impressed by this display of CSS drawings using only a single DIV element for each one: http://lynnandtonic.github.io/a-single-div/

4

u/siegfryd Jun 24 '14

Probably could've used psuedo elements to get the number of divs down, but that doesn't really make a big difference in the end.

6

u/BadgerRush Jun 24 '14

Yes it does. Try opening that page with CSS disabled, or with a user defined accessibility CSS, or with a screen reader.

The HTML content of that page makes no sense, it is just a mumble of senseless divs.

6

u/cybercobra Jun 24 '14

Harsh reality: Unless lawsuits are involved, almost nobody except government [contractors] care about Web accessibility. *Slurps down more div soup*

→ More replies (3)
→ More replies (1)

16

u/RenaKunisaki Jun 24 '14

pure CSS

requires Javascript

2

u/fecal_brunch Jun 24 '14

I wonder if it could be achieved with :after elements...

1

u/larsga Jun 25 '14

Not to mention calling it programming...

→ More replies (1)

4

u/[deleted] Jun 24 '14

Making Bart pink takes away from them being a typical American family.

4

u/argv_minus_one Jun 25 '14

Stop torturing CSS like this and just use SVG. Only you can prevent horrific stylesheet abominations!

3

u/ncshooter426 Jun 24 '14

I haven't watched the show in a while...but is Mr. Smithers wearing hoop ear-rings? Did he finally....make the jump officially?

4

u/emperor000 Jun 24 '14

I think those are artifacts due to the way the images are generated/rendered. If you look at "Comic Book Guy" his face looks a little weird. "Itchy" looks almost like he has a mustache.

5

u/smeenz Jun 24 '14

The render is different in FF from that in Chrome. FF likes to add a curl to both ends of a line segment, whereas chrome is happy to do just one end.

Comparison: http://i.imgur.com/n2EIb6C.png

→ More replies (1)

3

u/doubleColJustified Jun 24 '14

Tested on Firefox for Android. Homer, Bart, Marge and Lisa are all pretty much perfect. A few of the others got messed up a little. All over I'm quite impressed, both with the work done by the author and with Firefox. Personally, I -- like several others ITT -- would have opted to use SVG instead though.

3

u/hayander Jun 25 '14

Seems that way on desktop browsers except for chrome, too.

Firefox 29 and IE 11 anyway

3

u/jmblock2 Jun 24 '14

someone please make all of the eyes follow the mouse!

0

u/[deleted] Jun 25 '14

[deleted]

1

u/jmblock2 Jun 25 '14

hah this is great, thanks!

2

u/longshot Jun 24 '14

Impressive, Homer is almost 600 lines of css!

2

u/caotic Jun 24 '14 edited Jun 25 '14

For a moment I thought I read CSI, and totally believed it.

2

u/tWoolie Jun 25 '14

Just because you can, doesn't mean you should. We have SVG for a reason, people.

1

u/monkh Jun 24 '14

Using my scroll wheel on that website was weird it had quite a bit of lag but when using scroll bar on the side it was ok.

1

u/aarkling Jun 24 '14

LOL How is this even possible? I guess I suck at CSS even more than I thought...

1

u/Cuddlefluff_Grim Jun 24 '14

A few <blink> and <marquee> tags here and there sprinkled with display: table; and box-sizing: border-box;

1

u/teiman Jun 24 '14

Hahaa.. amazing.

1

u/Cheekio Jun 24 '14

"What's really cool is I can now do stuff like that this..."

1

u/bondoli Jun 24 '14

This makes me happy.

1

u/Matt31415 Jun 24 '14

Did you consider using Less? I think that might allow you to write cleaner CSS.

1

u/hey_suburbia Jun 24 '14

I made this in 20 seconds in Google Web Designer: http://jsfiddle.net/jhEgE/

1

u/BilgeXA Jun 24 '14

What about Human Apu?

1

u/mailingpie Jun 25 '14

It amazes me that it's the year 2014 and we still don't have WYSIWYG web programming.

Honestly how many hours did this guy put into these that could have been done much faster if web design was better?

1

u/kryptobs2000 Jun 25 '14

You mean like using inkscape and svgs? That's how anyone would normally do this. This guy did this just for shits.

1

u/[deleted] Jun 25 '14

Ugh. Just fucking ugh. This is what we've been reduced to?

1

u/IcedDante Jun 25 '14

I know CSS for Web design, but I can't understand how this works. Can anyone explain it to me?

1

u/Clydeicus Jun 25 '14

By horribly abusing CSS

1

u/[deleted] Jun 26 '14

I can tell the page's claim is legit because Firefox scrolls down it at approximately 2 seconds per frame on a beefy desktop.

1

u/dont_know_ Jun 24 '14

Itchy's eyes O_o

1

u/neofatalist Jun 24 '14

Its like writing an executable "hello world" in hexadecimal. :p

1

u/drowsap Jun 24 '14

And to think there are some people out there still using tables for layout...