Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

How To Make A Website Have Rounded Borders/Corners using CSS

Loading...

Sign in or sign up now!
4,744
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 21, 2009

A lot of web 2.0 design is rounded corners even here on YouTube - has rounded corners on there borders. A simple line of CSS code is all that it takes, so take a quick look at what you need.

1. Build your website if it's not already built
2. Add these three lines of code into your CSS in your site editor. border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
3. Save your document and preview your site!

Category:

Howto & Style

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (idreamofyou1989)

  • how is this done for IE?

  • @russellsmckinney the first line border-radius: 10px; should take care of it for IE - older browsers (anything under 7) most likely doesn't work. Check it out, and let me know, but I believe it should be all good.

  • hey, can u write down the code here coz it is not clear on ur video..

  • @luck2050

    border-radius: 10px;

    -moz-border-radius: 10px;

    -webkit-border-radius: 10px;

  • you're welcome it is no problem!

see all

All Comments (16)

Sign In or Sign Up now to post a comment!
  • Super! the shortest and easiest tut for rounded corners. cool

  • Thank you so muchhhhhhh

  • OMG thank you so much! This is so much easier than doing it with images! thx

  • this is only compatible in firefox any fixes?

  • Can u pls tell me which is the soundtrack which plays in this video?

  • hey, can u write down the code here coz it is not clear on ur video..

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more