1 Reply Latest reply on Oct 7, 2013 6:07 AM by Rpgccv

    "top-margin" on different browsers

    Rpgccv

      Greetings,

       

      There is a difference on how browsers deal with "margin-top". :S

       

      I have a header with a logo, and with the code bellow, on Chrome, i get it placed (on every % dimensions) perfectly on the vertical center of the header and on Firefox and IE i get it on the Stage vertical center!! So, chrome assumes the parent position and the other browsers don't!!

       

      sym.$("logo").css("position","fixed");

      sym.$("logo").css("top","50%");     

      sym.$("logo").css("margin-top","-20px");  //the object have 40px height

       

      O course that what i want is what Chrome is giving me!!

       

      Any solution!?

       

      Thanks in advance...