CSS text-shadow Fun: Realtime Lighting Demo

A post about the CSS text-shadow property. It’s been used to create some fun pseudo-realtime lighting effects.

There’s an example using a PNG to create a spotlight with some JavaScript to update the text-shadow style in order to simulate realtime shadows from a single light source. Works in Firefox 3.5, Safari, Opera, and Chrome but no support in IE8…

VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)

Understanding CSS Image Opacity / Transparency

Image transparency/opacity is not yet a CSS standard. However, it works in all modern browsers, and is a part of the W3C CSS 3 recommendation. Here’s a nice clear tutorial that explains how to achieve cross-browser transparency. It’s easy to understand and there are some useful examples…

VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Best Practices to optimize CSS – an academic exercise

Many of the tips in this article are tiny micro-optimizations, one thing to keep in mind when going overboard with optimizing. You should never sacrifice maintainability or extensibility for optimization experiments. Consider this article more like an academic exercise rather than real-life optimization tips.

It should also be noted that if you need to speed up your web site, don’t bother with CSS optimization. There are much better places to focus your attention to. The point of this and all optimization articles is to consider an optimization in context, not in isolation…

VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Understanding CSS Absolute Positioning and Layering

It is possible for you to place an HTML element at a particular spot on your web page, independent of what is already there. In this article there’s an in-depth treatment of that topic.

You need basic knowledge in CSS and HTML (XHTML) in order to understand this article…

VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Weaving a better Web page with CSS frameworks

A Cascading Style Sheets (CSS) framework expedites and simplifies the design and development of Web pages. Moreover, a CSS framework produces more standardized results in all browsers. Here’s a look at two CSS frameworks, each with a unique philosophy: Blueprint and the Yahoo! User Interface (YUI) Grid.

Both frameworks are free to use and permute, according to the terms of the liberal Massachusetts Institute of Technology (MIT) License and Berkeley Software Distribution (BSD) License, respectively. This article explores the novelties and capabilities of each and works through a series of examples. You can choose the option that works best for you…

VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

A Primer on the CSS Font Shorthand Property

Font declarations and related properties in CSS are fairly straightforward to write in longhand. But there is a shorthand CSS property for declaring certain typographical properties that is well-supported across all common browsers, but a little quirky to work with. In this article I’ll describe how the css font shorthand property is used, how it can be misused, and what potential drawbacks there might be to including it in your CSS code…

VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)