text-align:center doesn't work in Safari

Posted on 2004-11-03
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
    LVL 31

    Expert Comment

    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

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

    Accepted Solution


    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

    Thank you!!

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
    In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now