» Programming » CSS

Okay, so calling CSS a programming language is like calling a hammer a power tool. It's just not. Regardless, writing good, compliant CSS can be just as tricky as writing real code. Getting a page to function and look the same across all browsers with CSS can often be just as tricky as manipulating it with JavaScript... and sometimes even more difficult. Now, I'm no master of CSS. If you want to see true masters at work, get a look at css Zen Garden. That is a place where people turn a simple web page into true works of art. I have, however, spent a lot of time in the trenches, mucking with web pages and tinkering for hours to get them to work exactly how I want. Here, I plan to provide some of the more useful tricks that I've found so that maybe others can have an easier time of it.

Name Description  
centered_div.htm Getting a div horizontally centered on a page is a cinch. What's not quite as easy is vertically centering it in the browser window. The unfortunate limitation is that the div has to have a static height. view code ‹› demo