Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Rounded Corners

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Rounded Corners

    I have a div that i want to have rounded corners, what is the best way to do this?
    I know you can do it using a number of divs with different backgrounds, is there an easier way to do this is using css?

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello modm,
    Here's a couple examples of rounded corners. Look at the source to see how they're done.

    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    css method

    for mozilla browsers use: -moz-border-radius
    for safari use: -webkit-border-radius

    let IE users see squares until it supports round corners

  • #4
    Senior Coder twodayslate's Avatar
    Join Date
    Mar 2007
    Location
    VA
    Posts
    1,042
    Thanks
    67
    Thanked 39 Times in 39 Posts
    Quote Originally Posted by yorgo View Post
    for mozilla browsers use: -moz-border-radius
    for safari use: -webkit-border-radius

    let IE users see squares until it supports round corners
    agreed.

    if IE, use jquery rounded corners
    twitter | Quality Hosting - $5.95/mo*
    Feel free to PM me!


  •  

    Posting Permissions

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