Note that there are some explanatory texts on larger screens.

plurals
  1. POSubmit button CSS problems
    primarykey
    data
    text
    <p>I am using some css styling for my submit buttons, and they look fine except in Firefox there is a space between the left and main image. Here is what I'm using:</p> <pre><code>button.buttons { background: none; background-image: url(images/button_left_sprite.png); display: block; border: none; margin: 0 10px 10px 0; padding: 0 0 0 17px; cursor: pointer; font-weight:normal!important; color: #111111; } button:hover.buttons {border: none; } button.buttons span { background-image: url(images/button_sprite.png); padding: 9px 20px 10px 5px; font: 12px 'Droid Sans',arial,sans-serif; } /* Green Button */ button.btn_green {background-position: 0 569px;color: #435425;} button.btn_green:hover {color: #435425!important;} button.btn_green span { background-position: 100% 569px;} button:hover.btn_green { background-position: 0 528px;background-color:transparent!important; } button:hover.btn_green span { background-position: 100% 528px;background-color:transparent!important; }​ </code></pre> <p>And to put it on the page:</p> <pre><code>&lt;button type="submit" class="buttons btn_green left"&gt;&lt;span class="left"&gt;Update&lt;/span&gt;&lt;/button&gt;​ </code></pre> <p>If it helps, the images are here: </p> <p><img src="https://i.stack.imgur.com/LGydE.png" alt="http://i41.tinypic.com/dv1b6.png"> </p> <p><img src="https://i.stack.imgur.com/PsAE9.png" alt="http://i41.tinypic.com/2mcds8j.png"></p> <p>Im going bonkers trying to get this ugly space to go away in Firefox! Can anyone help me figure out why it's doing this? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload