Aug 27, 2009

Taming button padding in Internet Explorer

Here's another one of those irritating little CSS issues that comes up from time to time. When you use the <input type="submit" value="Click Me!"> element for a form button, IE always assumes it knows what's best for you in the area of horizontal padding. And if all you want is a simple button, that's fine; but what if you want to kick it WinXP style and have a little icon at the left of the button? You'd think you could just manipulate the left padding for the <input> and drop in your background image positioned to "0 50%", right?

Wrong. For whatever reason, IE ignores your padding rules and does whatever the hell it wants. Until now.

This time, when I discovered that our contractors had dodged this issue by using image buttons with rastarized text – thus removing any hope of applying hover and disabled styles, and locking in their misspellings – I decided the right solution was to switch to buttons. That's when I remembered the previous problems I'd had with button styling.

This time, when I went looking for answers, I found Mr. Kirkland's posting. The workaround turns out to be quite simple, but far from intuitive. I have sent many karma points his way, and this blog posting is my way of ensuring I won't ever lose track of the information.

Sep 19, 2008

Static footers

In one of my current site designs, I have a problem with my footer containing copyright and the questionably ubiquitous “last updated” information. Everything is fine for pages that have enough text to fill at least one screen, but for shorter pages I'd like to have the footer stay more toward the bottom of the window. Why? Because I've used a background image to create a faux column effect, and this image is attached to the body element. When I have a small amount of content, it just looks stupid to have the footer floating there at the middle of the “page”.

I've been wishing I could think of a way to make the footer stick to the bottom of the window, for shorter pages, and to the end of the content, for longer ones. On Boagworld's site, Ed Merritt explains how to accomplish this very thing.

Jun 8, 2008

Norton software conflicts with Windows XP SP3

I downloaded and installed the SP3 upgrade the first day that I received the notification from Windows Update, so this didn't help me. But if you're still holding out – and if you're a fellow unfortunate who's been too busy or too cheap to ditch the Norton Security that came installed on your Dell computer – you might want to glance over this first:

Norton software conflicts with Windows XP SP3 - WindowsSecrets.com

Jun 5, 2008

Multi-version IE Testing

IETester is a free WebBrowser that allows you to have the rendering and javascript engines of IE8 beta 1, IE7 IE 6 and IE5.5 on Vista and XP, as well as the installed IE in the same process.

My DebugBar | IETester / HomePage

May 19, 2008

Frilly bits

Cameron Moll may feel like a posting about dingbat ornaments is stating the obvious, but… yanno… I was wondering.

25 resources for ornaments, fleurons, and "frilly bits" ~ Authentic Boredom