You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@JCsplash thanks for that tip. Your placeholder wasn't working for Safari Mobile so I added some webkit lines to it. I got it working with this code below:
Hello all! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Feel free to comment if you are still running into this issue. Thanks for using Ionic!
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
kimsaabyepedersen commentedon Sep 27, 2014
I have also found that setting text-align to 5px (the padding size) fixes the problem (the ion-content has padding="true"):
//ionic.css line 5167
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
color: #aaaaaa;
text-indent: 0;
}
change text-indent to 5x px if padding.
Btw, further up (line 5137) that style sheet this rule defined:
textarea::-webkit-input-placeholder {
color: #aaaaaa;
text-indent: -3px;
}
But that gets overridden by the one further down in the stylesheet.
kimsaabyepedersen commentedon Sep 27, 2014
Maybe I did not state it clearly but the problem occurs in iOS (version 7.1 - I have only tested that), iPhone (I have only tested that).
GringoDotDev commentedon Dec 28, 2014
This still occurs for me on beta 14.
mhartington commentedon Apr 17, 2015
Looking into this.
WinfredMa commentedon Jun 15, 2015
/* ----------- iPhone 4 and 4S ----------- */
@media only screen
and (device-width: 320px)
and (device-height: 480px)
and (-webkit-min-device-pixel-ratio: 2) {
textarea {
text-indent: -3px;
}
}
/* ----------- iPhone 5 and 5S ----------- */
@media only screen
and (device-width: 320px)
and (device-height: 568px)
and (-webkit-min-device-pixel-ratio: 2) {
textarea {
text-indent: -3px;
}
}
/* ----------- iPhone 6 ----------- */
@media only screen
and (device-width: 375px)
and (device-height: 667px)
and (-webkit-min-device-pixel-ratio: 2) {
textarea {
text-indent: -3px;
}
}
/* ----------- iPhone 6+ ----------- */
@media only screen
and (device-width: 414px)
and (device-height: 736px)
and (-webkit-min-device-pixel-ratio: 3) {
textarea {
text-indent: -3px;
}
}
10 remaining items
JCsplash commentedon Jan 25, 2016
Hey everyone I think I found a solution without using text-indent (which only seems to work for the first line). Hope this helps!
textarea::placeholder {
padding-left:3px
}
textarea{
margin-left:-3px
}
taigeair commentedon Apr 15, 2016
@JCsplash thanks for that tip. Your placeholder wasn't working for Safari Mobile so I added some webkit lines to it. I got it working with this code below:
jgw96 commentedon Apr 29, 2016
Hello all! Is this still an issue with the latest version of ionic? Thanks!
jgw96 commentedon May 4, 2016
Hello all! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Feel free to comment if you are still running into this issue. Thanks for using Ionic!
jaroslavrehorka commentedon Nov 8, 2016
This issue is still present in RC2, negative text-indent helped me

bettysteger commentedon May 5, 2017
this worked for me:
doushan commentedon Jul 4, 2018
Hello,
Do check the blog post for supported CSS properties on placeholders.
https://blog.ajcw.com/2011/02/styling-the-html5-placeholder/
ionitron-bot commentedon Sep 1, 2018
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.