I generally try to avoid using images or Javascript when I can accomplish good presentation with CSS. In this case, I wanted to apply CSS shapes to make a clever speech bubble.
The problem with obtuse triangles and CSS
Obtuse triangles are slightly more complicated, since you can only create acute and right triangles with the CSS shapes method linked above. Therefore I created two triangles: a positive (black) right triangle, and then a negative (white) triangle to emulate an obtuse triangle.
Continue reading →
A relative of the CSS Adjacent Sibling Combinator that I wrote about before, the indirect adjacent combinator is pretty nifty and supported by IE7+, FF2+, Opera 9.5+, Safari 3+, and even Konqueror. It is actually part of the CSS3 spec but it’s surprisingly well supported. Continue reading →
It looks like David Baron is working hard on new CSS support for Firefox 3. His latest blog post tells us that he has finished up support for a bunch of CSS3 selectors, available now in the Firefox nightly build:
We now support :nth-child(), :nth-last-child(), :nth-of-type(), and :nth-last-of-type() [...] :first-of-type, :last-of-type, and :only-of-type
This will be released with the next major version of ‘fox (probably 3.1). It looks like support forMedia Queries is next. Hurrah! Good work David! Continue reading →