Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other CSS for styling form input on iPad/iPods/iPhones

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #41558
    Brin
    Member

    Hi all,

    I’ve just launched a new website and it all seems 99% fine (still needs a few tweeks here and there), but there’s an annoying problem with how the form input on the main index page appears on iPads/iPods/iPhones. The form input I’m refering to is the one in the middle of this page: http://www.joyokanjikai.com – it looks fine (dark blue) on the site when viewed by a regular browser, but looks terrible when viewed on Apple devices (faded and generally just horrible).

    Any ideas what’s gone wrong with my CSS?

    Many thanks,
    Brin (still learning web design – definitely not a pro)

    P.S. this button (a regular link, not a form input) looks fine on iPads/iPods/iPhones: http://www.joyokanjikai.com/random-kanji/

    #118896
    Brin
    Member

    Hmmm…sorry if I wasn’t clear before. I’ve created three images to help show what I mean:

    — Image 1: showing how the input button looks on my Mac in Firefox —
    http://www.joyokanjikai.com/temporary-folder/in-a-browser-on-a-computer.jpg

    — Image 2: showing how the same input button looks on my iPod —
    http://www.joyokanjikai.com/temporary-folder/how-it-looks-on-my-ipod-NOT-GOOD.jpg

    — Image 3: showing how I’d like the input button to looks on my iPod —
    http://www.joyokanjikai.com/temporary-folder/how-it-should-look.jpg

    Can you see what I mean? The input button appears totally different (faded etc) on my iPod… I want it to look the same as the button (which is not an input but rather just a regular old styled link) shown in Image 3.

    Thanks,
    Brin

    #118915
    DustinWoods
    Member

    Add this: -webkit-appearance: none;

    Edit:
    And just to be safe, you could also add:


    -moz-appearance: none;
    appearance: none;

    This disables browsers from using their native appearance for elements such as input fields.

    #118940
    Brin
    Member

    Hiya,

    I’ve added the above to make:

    #searchform input {
    -moz-appearance: none;
    appearance: none;
    }

    but it appears to have made no difference… Any more ideas?

    Brin

    #118941
    Brin
    Member

    Sorry, forgot the code tags:


    #searchform input {
    -moz-appearance: none;
    appearance: none;
    }

    #118943
    Brin
    Member

    hmmm: there should be a hash infront of “searchform” but it’s not appearing above.

    #118944
    Brin
    Member

    Aha…now added “-webkit-appearance: none;” and IT HAS WORKED! THANK YOU. ^^ Oh, and: Merry Christmas!

    #118945
    Brin
    Member

    [SOLVED]

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Other’ is closed to new topics and replies.