Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Okay... Sorry... Here we go... The officially unofficial answer is...</p> <p>You can't get rid of it.</p> <p>Apparently this is a "bug" with mobile safari on inputs. See:</p> <ul> <li><a href="https://stackoverflow.com/questions/3516651/input-type-submit-padding-bug-on-safari-mobile">&lt;input type=&quot;submit&quot;&gt; padding bug on Safari mobile?</a></li> <li><a href="https://stackoverflow.com/questions/3430506/iphone-button-padding-unchangeable">iPhone &lt;button&gt; padding unchangeable?</a></li> </ul> <p>You can, however, knowing the indent do this</p> <pre><code>textarea { text-indent:-3px; } </code></pre> <p>It's not a pretty solution, but it does what you need.</p> <p><strong>Edit</strong> Forgot to mention, tested with iOS Simulator. You might try on your phone itself.</p> <p>Another point: This also assumes that you're serving up css solely for mobile safari, specifically for the iPhone. An older way of doing this is:</p> <pre><code>/* Main CSS here */ /* iPhone CSS */ @media screen and (max-device-width: 480px){ /* iPhone only CSS here */ textarea { text-indent: -3px; } } </code></pre> <p><strong>Edit Again</strong> I'm having way too much fun with this... You can also use separate stylesheets with these declarations:</p> <pre><code>&lt;link rel="stylesheet" media="all and (max-device-width: 480px)" href="iphone.css"&gt; &lt;link rel="stylesheet" media="all and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait)" href="ipad-portrait.css"&gt; &lt;link rel="stylesheet" media="all and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape)" href="ipad-landscape.css"&gt; &lt;link rel="stylesheet" media="all and (min-device-width: 1025px)" href="ipad-landscape.css"&gt; </code></pre> <p><strong>Edit</strong> Because apparently somebody bought an Android ;)</p> <pre><code>&lt;script type="text/javascript"&gt; if (navigator.userAgent.indexOf('iPhone') != -1) { document.write('&lt;link rel="stylesheet" href="iphone.css" type="text/css" /&gt;'); } else if (navigator.userAgent.indexOf('Android') != -1) { document.write('&lt;link rel="stylesheet" href="android.css" type="text/css" /&gt;'); } else { document.write('&lt;link rel="stylesheet" href="desktop.css" type="text/css" /&gt;'); } &lt;/script&gt; </code></pre> <p>Personally, I don't really have a problem with text-entries having some internal indentation. It clears it from the area's edge and makes it more readable. I do, however, believe that a browser should support the spec. So here's an update for differentiating between android and iPhone. Have fun!</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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