I am really confused about a CSS problem in IE9 browser. I have a webpage with textarea
element with placeholder
. I want to text-align: center;
the place-holder only,
input text text-align is set to left.
Please see my edits below.
Html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style>
textarea {
width: 80%;
height: 80px;
}
::-webkit-input-placeholder {
text-align: center;
}
:-moz-placeholder {
text-align: center;
}
::-moz-placeholder {
text-align: center;
}
:-ms-input-placeholder {
text-align: center;
}
</style>
</head>
<body>
<textarea rows="2" cols="21" id='txtnote' class="testplaceholder" maxlength="500" placeholder="Note" onblur=""></textarea>
</body>
</html>
Everything works fine in IE 11, Firefox, Chrome in Windows 8 , But when i look this webpage in to IE9 in Windows 7 it's not working