Call Montréal, Canada 524-949-6869

Blog

Monday, November 16, 2009

Ask for help: background-image disappears on Internet Explorer 7 when in a div with float

I came across a strange CSS bug with IE 7 today. When I have a container that is floating and I use a text replacement technique the image does not show. Remove the float and it does. Or alternatively remove the DocType and it also works.

Browsing the 'net I haven't managed to find this bug. Have you come across this before? Do you have an explanation?

Developing Ruby on Rails applications and custom Content Management Systems in Montréal. Contact Firsthand.