SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Strategy for making things align properly in all browers?

    I made made a design in chrome and aligned all the elements so that it looked fine in the browser. When I switched to FF and IE the margins were all off. How can I ensure that things like the same on all browsers? I'm pretty new to CSS so maybe I'm not aligning things properly. The website is Glumbo Uploads - Easy way to share your files

  2. #2
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,892
    Mentioned
    123 Post(s)
    Tagged
    1 Thread(s)
    Hmmm ... I've looked at it in Opera and IE and it looks near enough the same ... what is it that you're not happy with in the IE display?

    As for getting browsers to display consistently ... it isn't easy to get pixel-perfect precision, but one thing that can help is to make sure your code validates - check it in The W3C Markup Validation Service, and you'll see it's flagging a few errors. It looks like they're mostly caused by using self-closing link tags (ie <link ... />), which is required in XHTML but not allowed in HTML (it should be just <link ...>).


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •