Grow your CSS skills. Land your dream job.

variation in buttons display in firefox and IE

  • # October 25, 2008 at 4:47 am

    I want to display same button size in firefox and IE.but its applying to buttons in all pages.i dont want that.As per the button name(as per the number of characters in the button’s name),its size has to be adjusted and all buttons in all pages should look same in IE and Firefox.
    What i need to change in CSS.

    I am using following css code for button

    Code:
    input.advbutton
    {
    font-size : 1.2em ;
    background : #ffffff ;
    color : #000000 ;
    font-weight : bold ;
    border-top : .2em solid #cccccc ;
    border-left : .2em solid #cccccc ;
    border-bottom : .2em solid #000000 ;
    border-right : .2em solid #000000 ;
    margin : .1em ;
    }
    # October 28, 2008 at 6:26 pm

    Its very hard to get a input button the exact same layout in every browser, so if i were you i wouldn’t mind the little changes between browsers. If you really want the exact same button you could try and use images for buttons.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".