CSS on IE help

Out of context: Reply #11

  • Started
  • Last post
  • 13 Responses
  • netbanshee0

    I've been just getting past some of the head banging that I've been doing withh XHTML and CSS programming. Here's what I recommend...

    Avoid using floats and z-positioning in your site. Try to use absolute and relative positioning for elements and remember that positioing is based on the div those elements are contained in. Each "grid" area that you want content to sit in should be its own div. Then, use your margins to move your individual divs where you want them to be. Sometimes you might have to do negative top margins to bring text up along the side of body text for example.

    Also... listen to dc_again and use the box model hack for your divs. Use them only when you use padding and borders in the horizontal dimension of your divs (width) and when you are using relative font sizing (i.e. - x-small / small).

    Good luck...

View thread