IE filter gradient and positioning bug

Today I found a bug in the IE rendering engine that revolves around IE positioning and using filter’s to handle gradients. My issue was that I had a navigation component that contained a drop-down menu. These drop down menus weren’t showing up in IE for some reason. After many hours of debugging, I traced it […]

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>