Posted By

rengber on 09/04/06


Tagged

css browser layout Compatability


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

meth


Basic CSS Layout Starting Point (Browser Compatability Hacks)


 / Published in: CSS
 

Here are the basic CSS properties needed to start a layout that looks the same in Firefox (1.5ish) and IE (5-6)

  1. body
  2. {
  3. font-size: 62.5%;
  4. /* This allows you to set subsequent font sizes using em heights. */
  5. }
  6.  
  7. *
  8. {
  9. margin: 0 auto;
  10. padding: 0;
  11. min-width: 0px;
  12. }
  13.  
  14. #Element
  15. {
  16. text-align: center;
  17. width: 50%;
  18. position: relative;
  19. left: 25%;
  20. margin-left -25%;
  21. }

Report this snippet  

You need to login to post a comment.