PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Adding CSS to submit button image

  1. They there,
    I'm working with a responsive theme and in order to make the images responsive I need to add the class "size-auto" to all images.

    How can I add this existing class to the submit button image?

    Thanks!

    Posted 7 years ago on Saturday February 2, 2013 | Permalink
  2. The submit button is not an image by default. Are you using an image button now?

    One issue will be that it's an input form element of type image, so adding a class to it will not be:

    <img class='size-auto'

    It would be:

    <input  type='image'

    I'm not sure if adding the "size-auto" class would work if added to an element other than an image. If you add the size-auto class to the form, does that work? It would end up like this:

    <form class='size-auto'
      <input type='image'
    Posted 7 years ago on Monday February 4, 2013 | Permalink