Archive for the ‘Markup’ Category

“I have a quick question about image rollovers in the navigation”

Monday, April 30th, 2007

Q: Is it better to use 2 images, or 1 image with a changing background position? In the past I’ve always used the second one, but I’m not sure how browser compatible it is…

A: It depends… There is no browser incompatibility since it is a simple CSS style, but I favor separate images for three reasons (below)

  1. You could have file-size issues when optimizing. Putting the off/on states together makes one file that much larger – plus, at the “dividing line� where the two button states meet there is a potential negative impact yet again (if you’re making a JPG). If you’re optimizing a GIF, you could be doubling the amount of colors in the image. Lastly, the browser downloads all the image file size for both states in every instance which leads me to point two.
  2. The browser only downloads as many single images as are needed
  3. Making and optimizing the off/on states of the nav at the time of design in the PSD takes more time to combine when it’s not traditionally (here) laid out that way.

One flip side is that, if you make separate images, there are twice as many images on the server to manage.

FYI, when styling the CSS selectors, there is no advantage either way.

The Web Standards Advent Calendar – 24 ways, 2006

Friday, December 1st, 2006

Why have chocolates-based advent calendar again this year when you can suffice your daily craving with one that’s standards-based instead – yeh!

24 ways is brought to us by Drew McLellan – a web developer, author and no-good swindler from just outside London, England. At the Web Standards Project he works on press, strategy and tools. Drew keeps a personal weblog covering web development issues and themes.

Drew was nice enough to provide links to last year’s articles as well. These well-crafted articles are done by some of the most recognized in the industry.

On second thought, have fun with the examples while crushing a box of chocolates at the same time.