Category Archives: CSS
Automatically Refresh Browser When CSS Changes
LiveReload is an app that will watch files on your local development environment and automatically update the browser when CSS changes are made. I can’t believe I didn’t hear about this years ago.
Making Xdebug Pretty Not Ugly
My First Shot at Adaptive Images
A Primer on Responsive Web Design
W3Schools Isn’t Official or Accurate
Body Classes Instead of Conditional Stylesheets
Light and Clean CSS Message Box Styles
Here are a couple examples of good colors to use for clean CSS message boxes:
Sub-pixel letter-spacing in CSS
Distributing Fonts Via @font-face
Z-Index Stacking Contexts
CSS Selector Browser Compatbility
kimblim.dk has a chart showing browser support for various CSS selectors, including pseudo selectors. It includes CSS versions 1 through 3 and all of the major browser versions.
Content Above Anchors Disappear
Using overflow to Clear Floated Elements
Placing an Element In Front of an Object
Here’s how to have a drop-down menu appear on top of a Flash object:
- Add a z-index of 0 to the object’s containing div
- Add <param name=”wmode” value=”transparent”> inside the object tag
- Add wmode=”transparent” to the embed tag
via Sheriar Designs
The Best Way to Define Font Sizes in CSS
Internet Explorer Doesn’t Match PNG Color to CSS Color
All currently available versions of Internet Explorer incorrectly display colors in PNG images. To work around that, instead of setting a background color, you can use create 1×1 pixel image with the color you want, and set it as a repeating background image.
CSS Drop-Down Menus
Tomas Bagdanavicius has created a fast, themeable, cross-browser CSS-based Drop-Down Menu Framework that only uses Javascript for IE6.