CSS - how can I differentiate FF3 to FF2

Discussion in 'CSS' started by all023, Jul 9, 2008.

  1. #1
    Hi all,

    I need differentiate FF3 to FF2 in my CSS file, someone know how?

    /*this is for FF*/
    #search
    {
    with:97%;
    }
     
    all023, Jul 9, 2008 IP
  2. Cobnut

    Cobnut Peon

    Messages:
    184
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It might help if you told us why. Is there some problem you're trying to avoid?

    Jon
     
    Cobnut, Jul 10, 2008 IP
  3. shacow

    shacow Active Member

    Messages:
    339
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Is ff3 even out yet?

    I think the only way you could determine which browser would be with a javascript or php code.
     
    shacow, Jul 10, 2008 IP
  4. all023

    all023 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thank you very much for your answer,
    I'm sorry I am new with CSS.

    I don't understand why the position of a button is different in FF3 and FF2

    To see right with FF3
    POSITION: relative; TOP: -6.9em

    And the same to see right with FF2
    POSITION: relative; TOP: -4.5em
     
    all023, Jul 10, 2008 IP
  5. 007c

    007c Peon

    Messages:
    611
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well if using a search form did you remove the margins and padding to your form tag?
     
    007c, Jul 10, 2008 IP
  6. all023

    all023 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yes, I removed
     
    all023, Jul 10, 2008 IP
  7. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #7
    There are no hacks that I know of to differentiate between FF2 and FF3, however I'm going to say it's the way the page was coded which is showing the differences (even if all other browsers looked the same, and even if the current code is valid).

    There's a page made by a colleague of mine who doesn't really code the best (HTML, he's a PHP guy really) and while the online site looked pretty much the same between all browsers, when Opera 9.5 came out, there are suddenly gaps in the page and the footer mysteriously grew to twice its height. If the code had been solid in the first place, I doubt that would have happened (that is, I don't think it's a bug in Opera9.5). Opera 9.27 does not show the gaps or any problems.
    www.jeansselling.nl just the main page, if you have Opera9.5 and Opera 9.27 (or just any other browser).

    FF3 is supposedly closer to rendering things more accurately than FF2 (with the exception of any bugs which may be present in FF3), so it may be time to just rethink all the code.

    Relative positioning is rather dangerous in my opinion, at least when you are using coordinates to move the thing around. It's much safer to use margins and the like.
     
    Stomme poes, Jul 11, 2008 IP