git completion in zsh

Just figured out how to get git tab completion working in zsh on a Mac. Turns out that the completion scripts use a bunch of extra git commands such as git-ls-files. These commands need to be in your path for the completion to work. If you installed git using the OS X installer, you need […]

Centering images and text inside an li or div

Found a good fix for this one as well. This will work on LIs or DIVs. Here’s how to do this in IE and FireFox: li { display: inline; text-align: center; } li img { display: block; margin: auto; } The HTML looks like this: <ul> <li><img src=”…”/>Some text</li> <li><img src=”…”/>Some text</li> </ul>