Categories
Articles

CSS Architecture

Very nice post on CSS Architecture. I have just read Clean Code¬†and many of the same principles from coding apply to CSS. A particular problem I know is everywhere on mine is splitting classes on attribute blocks to save typing – which of course spreads the definition all over the file! I will keep an […]

Categories
Articles

REPLACING THE -9999PX HACK (NEW IMAGE REPLACEMENT)

Replacing the -9999px hack¬†shows a simple way to replace text with images that doesn’t use the text-indent:-9999px hack. It simply uses the following CSS: .hide-text { text-indent: 100%; white-space: nowrap; overflow: hidden; } Very simple and avoids the 2 problems with the other technique – very long lines of text can flow into the container, […]

Categories
Book Review

Smashing CSS: Professional Techniques for Modern Layout: Book Review

Smashing CSS: Professional Techniques for Modern Layout – by Eric Meyer covers a number of techniques, tools, tips and tricks on using CSS. The book is very clear about the level of the reader – advanced beginner to intermediate. If you are really advanced, you will probably know about most tricks, and if you are […]