Hmm, this trend of replacing bitmap images with CSS vector graphics is interesting but a bit strange. Is SVG on the browser dead, and CSS is replacing it? It has the advantage of better support and a simpler spec, but much worse tool support than SVG, not to mention really not being designed for vector graphics.
Are We Taking CSS Too Far?
21–30 of 58 posts
Re: Are We Taking CSS Too Far?
#22I agree with the author wholeheartedly. I always assumed these were experimental of the "just 'cause I can" type. Trying to show off how far CSS can go, but not really in a realistic usage. I read here though that people believe this is a useful type of use. Without getting into a flame-war if it is or isn't, I think the answer there is SVG: that should be just perfect for these sort of usage.
Re: Are We Taking CSS Too Far?
#23Somedays I just wish we had used Postscript with hyperlinks instead of HTML/CSS/Javascript.
(Before you say "Ewww, PDF", recall PDF is basically Postscript, and most of the reasons you would say "Ewww, PDF" would still apply. I did say "most", there are some exceptions. Now, if you want to say, "Ewww, Adobe", I'm right there with you.)
Re: Are We Taking CSS Too Far?
#24Earlier quoted context omitted.
adding an icon inside a button is far simpler with css buttons, stretching it vertically is obviously miles miles easier with css than with images, email is just a whole other nightmare that I really dont think should even be considered when talking about sane html / css. I dont understand how you can possibly think generating text inside images to be more readable or semantic, future proof or maintainable. nor do I…
Good points, esp re email. I'm not particularly wedded to either side of the debate really, but: > generating text inside images oh, nonono, I was thinking more in terms of INPUT.button{background-image: url(btn.php?button_attributes_in_json);} > adding an icon inside a button is far simpler with css buttons depends what wonderful CSS you're using to create your button. > generating images programatically on the serv…
heh its not "hard", but its already a hell of a less convenient than what I just do now with css.
Re: Are We Taking CSS Too Far?
#25Earlier quoted context omitted.
CSS buttons mean that web apps can create UI elements without (a) relying on ugly, unreliable browser builtin sprites, and (b) having to handcraft graphics for every label the application needs. It's not a small win; it reduces many feature requests from 30 minutes down to 2.
If you need to handcraft graphics for every label the application needs then you are doing it wrong.
with css you do it once and its pretty much already automated, you just add a class to each "discount" or "tag" button you want.
On a side note I really despise the "you are doing it wrong" meme, it virtually always means "you arent doing it with the same concerns I have".
Re: Are We Taking CSS Too Far?
#26Re: Are We Taking CSS Too Far?
#27Somedays I just wish we had used Postscript with hyperlinks instead of HTML/CSS/Javascript.
PDF basically has the necessary features to do that already. Nothing actually stops you. (Before you say "Ewww, PDF", recall PDF is basically Postscript, and most of the reasons you would say "Ewww, PDF" would still apply. I did say "most", there are some exceptions. Now, if you want to say, "Ewww, Adobe", I'm right there with you.)
You'd probably want to write in some other language or tool and use Postscript as an object language, like in the day of printers.
The huge difference is that the evolution of the media would be in the hands of the content creators, not the browser writers/choosers.
I would try this fork of the multiverse.
Re: Are We Taking CSS Too Far?
#28Earlier quoted context omitted.
CSS buttons mean that web apps can create UI elements without (a) relying on ugly, unreliable browser builtin sprites, and (b) having to handcraft graphics for every label the application needs. It's not a small win; it reduces many feature requests from 30 minutes down to 2.
If you need to handcraft graphics for every label the application needs then you are doing it wrong.
Re: Are We Taking CSS Too Far?
#29Somedays I just wish we had used Postscript with hyperlinks instead of HTML/CSS/Javascript.
(Note: I think PostScript, and stack-based languages generally, can be great fun, but really not for the average “guy making a site about his dog” sort of user)
Re: Are We Taking CSS Too Far?
#30Just because you can use a crowbar in the place of a hammer, doesn't mean that you should. The right tool for the job, and other such anecdotes.
(You know. In the absence of a hammer)