Note that there are some explanatory texts on larger screens.

plurals
  1. POhtml wrong position
    primarykey
    data
    text
    <p>I have no idea why this elements inner input field gets different rendering. This is a screenshot (it should be in the middle, like on firefox).</p> <p><a href="http://imageshack.us/photo/my-images/842/lasw.png/" rel="nofollow">http://imageshack.us/photo/my-images/842/lasw.png/</a></p> <p>The element exists out of 3 divs.</p> <pre><code>1. Container div (position relative) 2. Input field (position absolute; top: 3px; left 0px;) 3. Label (position absolute; top: 3px; left 0px;) </code></pre> <p>Here are the global styles (resetting and defining font style)</p> <pre><code>label, input, textarea, select, button{ font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; line-height: 20px; } html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, hgroup, menu, nav, section, menu, time, mark, audio, video{ margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 100%; vertical-align: baseline; background: transparent; } </code></pre> <p>Here is the style on the container div:</p> <pre><code>.textbox{ position: relative; padding: 3px; border-image: initial; background: #FFFFFF; -moz-box-shadow: inset 0px 1px 4px rgba(0, 0, 0, 0.2); -webkit-box-shadow: inset 0px 1px 4px rgba(0, 0, 0, 0.2); box-shadow: inset 0px 1px 4px rgba(0, 0, 0, 0.2); -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; border: 1px solid #B3B3B3; font-size: 13px; line-height: 20px; } </code></pre> <p>Here is the style on the input field, placeholder:</p> <pre><code>.textboxInput, .textboxLabel{ position: absolute; top: 3px; left: 0px; } </code></pre> <p>Here is the style on the input field:</p> <pre><code>.textboxInput{ background: none transparent !important; -webkit-appearance: none !important; border: 0px !important; outline: 0px !important; } </code></pre> <p>Here is the style of the label:</p> <pre><code>.textboxLabel{ font-weight: 500; } </code></pre> <p>I hope that some one knows why it is rendered differently.</p> <p>The problem is not the font-weight, the difference is 2 pixels in Firefox and Chrome what is causing 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