Trenton Moss offers up his Top Ten CSS tricks to help you with your daily CSS work. I’ve been applying most of those myself for a while now, but it’s interesting to see others using similar techniques.
Pay close attention to rule no. 4, “IE and Width and Height Issues”, this is vital for every rock-solid CSS layout. Always make sure your site containers are scalable to a certain extent because
- you will always have users that will need to zoom up the text
- you will often have content that is larger than the container is intended for
- if you are using a CMS and your client has access, you don’t know what he’s going to paste into those containers.
IE will expand a container according to its content’s size if needed, whereas all other modern browsers will just let the content run out of the box. Using the hack described will ensure both IE and the other browsers will scale the containers identically.