The problem of browser compatibilty

Discussion in 'CSS' started by soniya16, Sep 20, 2011.

  1. #1
    The position of css is different in different browers.how to get the same position in all broswer
     
    soniya16, Sep 20, 2011 IP
  2. Toycel

    Toycel Peon

    Messages:
    243
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    0
    #2
    Use a common reset at the start of the CSS file.
    
    * {
    margin: 0px;
    border: 0px;
    }
    
    Code (markup):
    That's a basic one. If you need something more specialised then a quick Google search could help
     
    Toycel, Sep 20, 2011 IP
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    1) Learn how to use CSS.
    2) Quit using IE as a reference for how things work
    3) Repeat step 1.
     
    drhowarddrfine, Sep 20, 2011 IP
  4. bloggernutshell

    bloggernutshell Greenhorn

    Messages:
    73
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #4
    These two lines of code is enough to fix most of the issues.
     
    bloggernutshell, Sep 21, 2011 IP
  5. Toycel

    Toycel Peon

    Messages:
    243
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    0
    #5
    That they are, they are the most basic part of a CSS sheet before anything else. Like I said you can add other CSS elements but if they are not needed then there is no point.
    Keep it simple.

    Cheers,
    T
     
    Toycel, Sep 21, 2011 IP
  6. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #6
    In eight years, we've never used a reset, and never will. If you just specify what the elements are to be, then that's totally unnecessary. A wholesale setting of everything to zero is bad overall. Don't do it. (On the road and can't go into details)
     
    drhowarddrfine, Sep 21, 2011 IP
  7. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #7
    Congratulations.
     
    drhowarddrfine, Sep 30, 2011 IP
  8. you-me

    you-me Peon

    Messages:
    67
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Mostly IE make problem. Try to google it and you will find solution.
     
    you-me, Oct 2, 2011 IP