We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

rengber on 09/04/06


Tagged

css browser layout Compatability


Versions (?)


Who likes this?

1 person has 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.