Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Buttons disapear in IE when using text-indent?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #25118
    Squintz
    Member

    You guys have been great help so far.

    In Chris’ video I have seen him assign a background-image to form buttons and then use text-indent: -999999px to knock the text off the page. For some reason in IE it seems to knock my entire button off the page yet it looks fine in FF.

    What is the proper way to add an image to a form button that works in both FF and IE and hopefully all other browsers?

    #58954
    Rob MacKay
    Participant

    can you show us a live example?

    Also make sure you are -99999px the actual element with the BG image and not the one that element is sitting in :)

    #58998
    Squintz
    Member

    The site: http://www.diapercakesbyjenny.com/products-page/

    Here is the markup:

    Code:




    Here is the css that is written for the button.

    Code:
    input.wpsc_buy_button{
    text-indent: -99999px;
    background: transparent url(’images/atc2.gif’);
    width: 92px;
    height: 23px;
    }
    #59000
    Rob MacKay
    Participant

    if you look in your CSS – you have put quotation marks around your image url…

    Change:

    background: transparent url(’images/atc2.gif’);

    to:

    background: transparent url(images/atc2.gif);

    that might change some stuff :D

    #59002
    Chris Coyier
    Keymaster

    Looks like you got some curly quotes in there where you have the path to the image.. which is screwing it up.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.