Note that there are some explanatory texts on larger screens.

plurals
  1. POInput Field Chrome and Firefox shows different
    primarykey
    data
    text
    <p>Here is the example in <a href="http://jsfiddle.net/J8dSN/1/" rel="noreferrer">fiddle</a></p> <p>I've tested in Chrome, it shows fine but when in Firefox, the input box is larger than expected.</p> <p>what is the reason for this? any solution to fix this problem?</p> <p>Here is the html file:</p> <pre><code>&lt;div class="form-wrapper"&gt; &lt;input type="search" name="Ofsearch" placeholder="Search here..." value=""&gt; &lt;button id="searchButton" type="submit"&gt;Search&lt;/button&gt; &lt;/div&gt; </code></pre> <p>css:</p> <pre><code> .form-wrapper { height: 80px; background: #555; color: #FFF; clear: both; } .form-wrapper input { background-color: white; border-radius: 10px; border: 5px solid #E5E4E2; margin: 2px; height: 40px; vertical-align: middle; padding: 20px; margin-top: 15px; width: 85%; } .form-wrapper input { background-color: white; border-radius: 10px; border: 5px solid #E5E4E2; margin: 2px; height: 40px; vertical-align: middle; padding: 20px; margin-top: 15px; width: 85%; } .form-wrapper button { overflow: visible; position: absolute; float: right; border: 0; padding: 0; cursor: pointer; height: 40px; width: 110px; color: #FFFFFF; text-transform: uppercase; background: #8E8CC2; border-radius: 0 3px 3px 0; text-shadow: 0 -1px 0 rgba(0, 0 ,0, .3); margin: 20px -118px; } </code></pre> <p>As you can see from the example, when in Chrome and FF, they shows different size.</p> <p>When I check this issue, I found the padding:20px in .form-wrapper input{ } has caused this problem. However, when I delete it, FF shows fine, but the input area gets smaller in Chrome. Just wondering, any way to make it displayed the same in both browsers.</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