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 9 – CSS min height
  5. Quick Tip 14 – WP E-commerce

Tags: , ,

Leave a Reply

Contact Us Today...

For more information regarding any of our services or to arrange a free consultation simply send us a message or call 02920 290 080 for Cardiff and 01179 000 482 for Bristol.

Firefox 4 Beta

Mozilla have released the first beta version of Firefox 4. The latest version of this browser will include better support for many of the new web technologies, a new add on manager, crash protection from third party plugins and accelerated hardware support. One of the most obvious changes is that the tabs have now been moved [...]
» more

Cardiff: 02920 290 080 Bristol: 01179 000 482