Tag Archives: CSS

CSS Transparency

29 Oct

Update: the use of RGBa in CSS

10.29.08

A working solution for transparency in web standards browser

I read this today on one of Andy Clarkes websites, he heard it at a conference talk by Cederholm.

Here’s the CSS syntax: (more…)

CSS Image Replacement

1 Jun

For people that care (and we should care), keeping the semantic integrity of your HTML document, while being able to create great design using images, has always been an important part of web design and development.

An increasingly popular technique is an Image Replacement techniques with CSS. This makes sure text browsers and Search Engines can read you text (great for SEO), while replacing them with images. This is simply a technique where your HTML text is being replaced with a graphic. There are many uses for this, most people use it for headers, I like to use it for any non-text graphical element my designer will come up with. (more…)

CSS Vertical Align

5 Jan

The vertical-align property in CSS has given gray hair to many a starting css coder until they finally realized what this property is, and what it is not.

This property does not vertically align elements inside a box element. It is not the CSS equivalent for the HTML attribute valign=”middle”. (more…)

CSS Shorthand

1 Jan

Introduction to CSS shorthand properties

Last Revision October, 2007.

Originally published by Sitepoint 2002-12-11

Shorthand properties?

Table of Contents:
Introduction to CSS shorthand properties

  1. font
  2. margin/padding
  3. border
  4. border-top, border-right,
    border-bottom, border-left
  5. list-style
  6. background

Note:
Since the original version of this article was first released by Sitepoint in 2002, much has happened in the browser world.
Support for CSS2 shorthand properties among current browsers is superior. It almost renders the support charts for CSS shorthand elements irrelevant, and these will most likely be removed in future revisions.

One of the many great possibilities in CSS is the use of shorthand properties. It lets you specify several similar properties by using only one. If you know some CSS and used it on your web pages, you’ll immediately see the benefit while reading this article. It will make you a much more efficient CSS coder by making edits faster and your CSS code shorter. (more…)

CSS background for textarea

1 Jan

There are many ways of customizing your form elements. One thing to keep in mind is that web users are used to the form elements that their browsers gives them by default, so for usability reasons, I recommend leaving the form elements alone in their default state. (more…)