RGBa and -webkit gradients: Yes.

Wednesday, May 27th, 2009

When @malarkey asked if RGBa worked with -webkit gradients, my own curiosity couldn't resist a quick and fugly test to see. Yes indeed, it works: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"   "http://www.w3.org/TR/html4/strict.dtd"> <html>   <head>     <title>Gradient Test</title>     <style type="text/css" media="screen">       body {         background-color: green;       }       div {         background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(50,50,50,0.8)), to(rgba(80,80,80,0.2)), color-stop(.5,#333333));         width:80%;         height:5em;         margin:0 auto;         padding:1em;         text-align:center;         color:white;       }     </style>   </head>   <body>     <div>Hello World!</div>   </body> </html>

The woes of CSS color in print typography

Sunday, December 7th, 2008

As I was working through some documentation on styling CSS for print recently, I came across an oddity. Colors that I was specifying in my print styles were not getting represented properly at print time. Specify a nice shade of gray for some text? Maybe want to ghost print something ...

Foundation Website Creation with CSS, XHTML, and JavaScript

Friday, August 8th, 2008

I would have announced this earlier, but somehow with the trip to Taiwan, the subsequent jet lag, and the whopper of a cold I had this past week has delayed me from getting this post out until now. But here it is: My book titled "Foundation Website Creation with CSS, ...

The non-importance of !important

Tuesday, August 5th, 2008

Molly Holzschlag raised a good issue via Twitter yesterday regarding the !important rules in CSS, reprinted here in more or less the order in which her tweets appeared thus far: TwitterPoll: What does this mean to you? != TwitterPoll follow-up. What does this mean to you? !=good TwitterPoll: Let's remove the equal sign. ...

iPhone and mouse events

Friday, August 1st, 2008

PPK has written his impressions regarding his shiny brand-new Jesusphone. (I wonder did he get black or white?) In his post, he tells us the initial reports for the behavior of mobile Safari with regards to things like documentation (missing), mouse event implications (game changing), and how the disjunct state ...