Some Useful CSS Tricks

September 30th, 2005 by Jerome Dahdah

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

  1. you will always have users that will need to zoom up the text
  2. you will often have content that is larger than the container is intended for
  3. 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.

Comments are closed.


By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close