www.webdeveloper.com
Results 1 to 2 of 2

Thread: When changing a button's background color, how do you preserve the "rounded" edges?

  1. #1
    Join Date
    Jul 2008
    Posts
    16

    When changing a button's background color, how do you preserve the "rounded" edges?

    Hey guys,

    I just noticed that when changing the background color of a <button> element, that the button's edges automatically change from rounded to square.

    Is there any way to prevent this? (without resorting to having to use an image for the button)

  2. #2
    Join Date
    Mar 2011
    Posts
    1,137
    If you want to do it all in CSS, you need to use border-radius... but, of course, older versions of Internet Explorer (before IE9) don't support it.
    Rick Trethewey
    Rainbo Design

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles