Quick Tip – CSS3 Rounded Borders

In an effort to keep posting regular content on our blog we will now be providing a Quick Tip Everyday. Whether it be HTML, CSS, jQuery or any other subject, we will now be adding useful simple snippets of code or information that we think you may find useful.

If you have any suggestions or would like to see some quick tips with a particular subject please comment below.Quick Tip Gary

Quick Tip 1 – CSS3

Rounded Corners has always been a problem within website design usually resulting in multiple images to create a simple rounded box. Thanks to webkit and moz borders we can now do this, here is the code below.
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #000;

-moz-border-radius-topleft / -webkit-border-top-left-radius
-moz-border-radius-topright / -webkit-border-top-right-radius
-moz-border-radius-bottomleft / -webkit-border-bottom-left-radius
-moz-border-radius-bottomright / -webkit-border-bottom-right-radius

Unfortunately the solution above will only work with Firefox and Safari 3+. If you wish to have rounded corners in all browsers check out http://www.curvycorners.net/, using JavaScript it can force rounded corners in all browsers.

Related posts:

  1. CSS3 Techniques
  2. Quick Tip 15 – WP More Tag
  3. Quick Tip 4 – CSS Resets
  4. Quick Tip 5 – Compact CSS
  5. Quick Tip 9 – CSS min height

Tags: , ,

Leave a Reply

Gary Morgan

Gary Morgan
Sales Director

Martyn Palmer

Martyn Palmer
Lead Designer

Oliver Blake

Oliver Blake
Web Designer

Tom Bradshaw

Adam Church
Web/Print Designer

Website Design

Website Design

For the complete standard compliant website.

Online Shops

Online Shops

Sell Products Online and manage your own stock.

Seo Marketing

SEO Marketing

Rank with search engine optimisation.

Print Design

Print Design

Logo design, stationary design & folder design.