How do I create embossed borders using HTML and CSS?

23986294 picture 23986294 · Jun 13, 2011 · Viewed 26.8k times · Source

Some GUIs use boxes with embossed borders to group widgets.

How do I create this look with HTML and CSS?

An embossed border is one that creates the illusion that an element comes forward out of the page in 3D. It is often created by making the top and left border lighter and the bottom and right border darker.

Answer

BoltClock picture BoltClock · Jun 13, 2011

Most GUIs I see use a style similar to CSS's border-style: groove for group boxes.

If you need to use a group box for your HTML forms, use <fieldset> with <legend> for the group label.