When to use JPG and When to use GIF

Like many of you, I spend a fair bit of time saving out graphics for use on the web. So when I’m browsing around the web, just by second nature I spot optimization mistakes. Kind of like how a typesetter …

Avatar of Chris Coyier
Chris Coyier on (Updated on )

Grabbing Hex Codes for Colors

Defining colors in CSS is all about Hex Codes. You know, those alphanumeric six-digit things like #990000. You might have a handful of them memorized. Like that one I just mentioned is a nice dark red. #cccccc is a …

Avatar of Chris Coyier
Chris Coyier on

Beginner CSS Tips For Your Blog

For many people, their introduction to web design and the wonderful world of CSS is through blogging. They start off blogging because it’s so easy and you don’t need to know anything at all about design. Soon after, the desire …

Avatar of Chris Coyier
Chris Coyier on

Tag Cloud with Varied Padding Thickness

Often times “tag clouds” use variations in font-size and font-weight to distinguish between heavy use and light use tags. Here is another approach: use rollover boxes of different sizes through varied amounts of padding.

You can set the different sizes …

Avatar of Chris Coyier
Chris Coyier on

Submit With Style

This is how you create a super basic submit button:

<input type="button" value="Submit" />

All you need to do to replace this default button with an image is to change the type to image and then declare a source image …

Avatar of Chris Coyier
Chris Coyier on

Better Blockquotes with CSS

Blockquotes are HTML elements that are meant to designate when a particular section of text is being taken from another website or other source. Different browsers have different built-in styling for blockquotes, often just a simple left margin. If you …

Avatar of Chris Coyier
Chris Coyier on

List of Deprecated Attributes Still in Widespread Use

A “deprecated” element is an element the W3C has designated as outdated. These elements should not be used and are generally considered to be “bad code”. If you use a STRICT DOCTYPE, deprecated elements will not pass validation.

The thing …

Avatar of Chris Coyier
Chris Coyier on (Updated on )