CSS-Tricks PSD to HTML: You Design - We XHTML

Archive for September, 2007



* { margin: 0; padding: 0; } No Longer Cool

One the techniques I have advocated using for a long time is this:
* {
margin: 0;
padding: 0;
}
This is part of the “CSS Reset” theory which helps keep your designs consistent across browsers, a very good thing. This technique works on all browsers, so I never really considered any negatives. That is, until [...]

10 Beautiful and Functional BLUE Web Layouts

Sometimes the best way to get inspired to design is to look at other great designs. These designs showcase beauty and function over flashiness. There are some amazing and flashy designs out there where I love the design but the functionality suffers. These aren’t among them.
This post is brought to you by the [...]

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 is, people still use them. In fact, many of them are in fairly widespread use. Why? [...]

“Real World” Web Design Still Needs to Accomodate 800×600

Check out the statistics for the screen resolutions of all you hip kids who read CSS-Tricks:

On this site, 800×600 doesn’t even make the top ten. Knowing that, I designed this site to make use of that extra pixel space. Right now it’s at 980 pixels. At first I went a full 1024, but that was [...]

How To Remember The Order of Selectors: LOVE and HATE

I read a comment the other day over on CSS Drive from someone named Slackerbabe that I thought was worth repeating.

Heres a cool way to remember the order of the four selectors, “LVHA (link visited hover active)”,….
Just think ‘LOVE’ (LV) and ‘HATE’ (HA)….
The selectors she is referencing is for anchor elements:

a:link
a:visited
a:hover
a:active

Thank you for visiting CSS-Tricks! I'm glad you found an article useful enough to print out! Remember to visit css-tricks.com often for more fresh content.