Note that there are some explanatory texts on larger screens.

plurals
  1. POInput Padding Cross-Browser Issue?
    primarykey
    data
    text
    <p>I have a search form that should look like this:<br><p> <img src="https://i.stack.imgur.com/MjEFR.png" alt="enter image description here"> </p></p> <p>This is the HTML:</p> <pre><code>&lt;form method="post" action="#" class="search-form"&gt; &lt;input type="text" class="nav-search-input input-initial" data-initial='Search' value="Search"&gt; &lt;input type="submit" class="nav-search-submit" value="&amp;#57384;"&gt;&lt;!-- &amp;#57384; is the code for the Glyphicons search icon --&gt; &lt;/form&gt; </code></pre> <p>I'm using Bootstrap and Bootstrap Responsive styles, as well as the following styles for the search form:</p> <pre><code>.search-form{ display: block; margin: 0; } input.nav-search-input, input.nav-search-submit{ color: #eeeeee; background-color: #181818; border-top: 1px solid #303030; border-bottom: 1px solid #303030; } input.nav-search-input{ width: 90px; height: 20px; -moz-transition:border-color 75ms; -o-transition:border-color 75ms; -webkit-transition:border-color 75ms; outline: 0!important; -webkit-appearance:none!important; box-shadow: none!important; -moz-box-shadow: none!important; -webkit-box-shadow: none!important; margin-top: 10px; padding: 0px 0px 0px 8px; line-height: normal; font-weight: normal; font-size: 14px; border-right: none; border-left: 1px solid #303030; -webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; -webkit-border-top-left-radius: 10px; -moz-border-radius-topleft: 10px; border-top-left-radius: 10px; -webkit-border-bottom-left-radius: 10px; -moz-border-radius-bottomleft: 10px; border-bottom-left-radius: 10px; } input.nav-search-submit{ font-family: Glyphicons; box-sizing: content-box; padding: 0px 6px 0px 5px; color: #aaaaaa; -moz-transition:border-color 75ms; -o-transition:border-color 75ms; -webkit-transition:border-color 75ms; border-left: none; border-right: 1px solid #303030; -webkit-border-top-right-radius: 10px; -moz-border-radius-topright: 10px; border-top-right-radius: 10px; -webkit-border-bottom-right-radius: 10px; -moz-border-radius-bottomright: 10px; border-bottom-right-radius: 10px; } </code></pre> <p>This works great on Chrome, Firefox, and Safari, but Opera is rendering the form like this:</p> <p><img src="https://i.stack.imgur.com/c2O3o.png" alt="enter image description here"></p> <p>The version of Opera in question is 12.02.</p> <p>It appears to be an issue with the padding. I've tried the solutions listed in <a href="https://stackoverflow.com/questions/1354470/form-padding-differences-in-firefox-and-opera-chrome-ie">this question</a> to no avail. If I increase the top and bottom padding to make it look correct in Opera, it no longer looks correct in the other browsers. </p> <p>Here is a <a href="https://dl.dropbox.com/u/23262910/test/test.html" rel="nofollow noreferrer">working version of the page</a>.</p> <p>Side note, I haven't tested in IE as I'm on a Mac.</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.
    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