skip to content
Advertise here

Chunky Borders and corners with no images

13th March 2007

Updated 12th June 2007 to give IE6 'TRANSPARENT' BORDERS!

Chunky Borders

3 pixel rounded borders without images

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.

Or this can be used as a speech bubble with the addition of a little CSS pointer. This does require a careful choice of colors for the foreground, border and background to hide the chunky non-anti aliased corners, and it works with javascript off and images off.

For non-IE6 browsers

12th June 2007

AND NOW FOR IE6 AS WELL

Just to show that this can be applied over a background image because the corners have 'transparent' margins and the pointer has transparent borders.

CSS play Support


CSS play Recommend

Free, practical CSS menus, layouts, and examples

Follow CSS play

Facebook  Twitter  Facebook Fan Page



Just CSS | Designs for the future

Like the CSS Zen Garden?
Then why not visit Just CSS and see it you can design for the future.




Information

I have had many requests for curverd corvers without images that are more than 1 pixel wide. So here is an example of a 3 pixel border with curved corners using just CSS with no images.

With the small addition of a pointer it can be made into a speech bubble of sorts. The only problem with this is that the curves are 'chunky' so colors must be used with care.

Oh, and also IE5.x and IE6 do not understand transparent borders (used in the pointer) so the speech bubble can only be used on a plain background for these browser and it will have a solid color rather than the perfectly formed pointer you will see in Firefox, IE7, Opera etc..

12th June 2007

Thanks to a comment by Jeff Corley, IE5.5 and IE6 can now be made to understand transparent borders (well sort of) and in this case the method works.




Copyright

You may use this method on your personal 'non-profit' web site without seeking my permission. A link back to CSSplay is always appreciated.

Commercial usage is also permitted without seeking approval, but I would ask that a donation is considered to support my work on CSSPlay.

If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.



  • Each week the Creare Group produce video tutorials for SEO and tips and tricks for the web design industry.
  • We offer nothing but the highest quality SEO, Social Media Optimisation And PPC services to businesses in London

 

CSS play Testimonial

"The citroen.co.uk web site uses
CSS play code for the site drop down menus.
This code works seamlessly in IE 6 & 7, and is an excellent solution to the Creative requirements of the site."

Damon Clark - Brandwidth