skip to content
Advertise here

Three curved and one square corner (no extra markup)

1st January 2007



BOTTOM RIGHT SQUARE CORNER

This is the place to put your descriptive text. The three curved corners and one square corner box requires no extra markup, just a standard definition list with three background images.

BOTTOM LEFT SQUARE CORNER

This is the place to put your descriptive text. The three curved corners and one square corner box requires no extra markup, just a standard definition list with three background images.

TOP RIGHT SQUARE CORNER

This is the place to put your descriptive text. The three curved corners and one square corner box requires no extra markup, just a standard definition list with three background images.

TOP LEFT SQUARE CORNER

This is the place to put your descriptive text. The three curved corners and one square corner box requires no extra markup, just a standard definition list with three background images.

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

This demonstrations shows how it is possible to have fluid boxes with three curved corners and one square corner using four background images, with NO extra markup or javascript.

This is acheived using a definition list which is able to handle three background images, one in the <dl>, one in the <dt> and one in the <dd>

Using slightly different styling these images can be placed to leave the square corner top/left, top/right, bottom/left and bottom/right.

This demonstration uses gif images of the correct color to blend in with the background colors, but you could change these to transparent gifs so that the box colors can easily be changed or even transparent pngs so that a better blend can be made (using javascript to make the png transparency work in IE5.x and IE6).

Although not to be used for general layout, these boxes can be useful for creating information areas on web pages.




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