DEV Community

Discussion on: How I Made This Realistic Red Switch (Pure CSS)

Collapse
 
moopet profile image
Ben Sinclair

It needs a bunch of HTML to back it up? There are several DIVs there whose sole purpose is presentation.

Thread Thread
 
ykadosh profile image
Yoav Kadosh

Pure CSS does not mean zero HTML, you need HTML elements to apply the CSS to.

Thread Thread
 
moopet profile image
Ben Sinclair

I know what you're getting at. But pure CSS to me means using the elements that are already there, and no more.

If you're allowing adding HTML, then you may as well say, "Let's have 1920x1080 DIVs and give them all unique IDs", because then "Pure CSS" will let you do full HD video, and it all becomes meaningless.

To me, pure CSS is what you could apply to an existing page without having to ask the authors to change their markup.

Thread Thread
 
samjarman profile image
Sam Jarman πŸ‘¨πŸΌβ€πŸ’»

I’ve always thought developers meant β€œno JavaScript” when they say pure CSS/ HTML.

Semantics aside, I’d say this is pretty impressive right?

Thread Thread
 
moopet profile image
Ben Sinclair

Nobody says that though, they say "Pure CSS". It's kind of a trend.

Yes, it looks really good!