Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-02-2010, 12:44 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 1
kevadamson is on a distinguished road
Exclamation iPhone Safari CSS styling issues

I have been trying to add border-radius to a <button> tag for a mobile version of a web site I am working on. For branding purposes the buttons need to have rounded corners and flat colours - green and grey.

When I tested my pages on an iPhone the buttons were flat in colour but had no rounded corners.

So I then replaced all buttons with input tags (type=button/submit), and the colour was applied, as were the rounded corners, BUT a ghastly gradient from light to dark was applied.

I then set -webkit-gradient to one colour stop which fixed the colour, but removed the border-radius.

All displays fine in Safari on Mac/Win from the off. Am I missing something here? Will border radius work on the button element for iPhone Webkit in the future? Is this a bug or is there a reason it seems to be teasing me?
kevadamson is offline   Reply With Quote
Old 03-10-2010, 11:53 AM   #2 (permalink)
Registered Member
 
Join Date: Mar 2010
Location: leipzig | germany
Posts: 1
viefeld.net is on a distinguished road
Default

i had the same issue and it took me some time, searching the net for a way out.

finally, i found a solution:
-webkit-appearance:none;
-webkit-border-radius: 0px;

the first tag deactivates the webkit-stuff, and after that you can style your element the way you want to ...

works fine on my iphone safari 3.x
have fun
viefeld.net is offline   Reply With Quote
Reply

Bookmarks

Tags
css, iphone, safari

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 350
9 members and 341 guests
2Apps1Day, akacaj, c2matrix, esoteric, givensur, mjnafjke, Pudding, SLIC, Techgirl-52
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,650
Threads: 94,115
Posts: 402,887
Top Poster: BrianSlick (7,990)
Welcome to our newest member, soohyun
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:11 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0