[Resolved] Image positioning issue between browsers

Home Forums Support [Resolved] Image positioning issue between browsers

Home Forums Support Image positioning issue between browsers

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #511093
    _blank

    Hi,

    I am trying to position an icon within search input. I managed to do in in Firefox, but IE shows it differently. I know it may not be directly connected to the theme, but maybe it results from the theme css however?

    https://1drv.ms/u/s!Ajkoo-gGVQk2htkulJRAJSsT_92zqw

    #511096
    _blank

    hmm, I added screen image, but it’s not showing upon ticket submission. Let me know if you can’t access it.

    #511375
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try this for the button:

    .your-button-class {
        background-color: transparent;
        background-image: url(URL TO ICON);
        background-repeat: no-repeat;
        background-position: center;
        width: 50px;
        height: 50px;
        padding: 0;
        display: inline-block;
        vertical-align: middle;
        position: relative;
        left: -50px;
    }

    And this for the input:

    .your-input-class {
        padding-right: 50px;
        display: inline-block;
    }
    #511415
    _blank

    Works, cheers ๐Ÿ™‚

    #511666
    Tom
    Lead Developer
    Lead Developer

    Glad I could help ๐Ÿ™‚

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.