text-align:center doesn't work in Safari

Posted on 2004-11-03
Medium Priority
Last Modified: 2012-08-13
This code works (=the text in the text box is centered) in IE, Mozilla, Netscape, Opera, but not Safari. I don't see any reason why it wouldn't. Maybe somebody had this problem too. Thanks!

<input type="text" style="text-align: center" value="test" />
Question by:EwS
  • 2
  • 2
LVL 31

Expert Comment

ID: 12484716
Well, the simple answer here is that it's not supported.

Input elements in safari are very closely connected with the MAC OS, and there's not much you can do except change the width and height.


Author Comment

ID: 12484871
Are you positive about it? I heard a different opinion...
LVL 31

Accepted Solution

seanpowell earned 1000 total points
ID: 12484994

Safari uses Cocoa, which closely follows Apple's Human Interface Guidelines.
I do know they are tryinbg to find a solution for a future release, so best just to include the style and wait :-)

Author Comment

ID: 12485027
Thank you!!

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question