Get programming code snippets and tips for HTML, CSS, ASP, SQL, JavaScript, RSS, XML, and more
Lee's Code        A web programmer's toolbox. SEARCH SITE
HOME  |  ABOUT LEE  |  CONTACT  |  SEARCH
Home > Code > HTML > HTML box with rounded corners

Navigation

Latest Additions

Links


 

Recommendations

Evolve Online
Powered by
Evolve Online
 

HTML box with rounded corners

By: Lee A. Shurie
 
Subject: HTML box with rounded corners
Language: HTML
Rating:
 Rated 54 times. Rate or review this item: 1 2 3 4 5
 Read Reviews
 
See it in action
 
Information
This little trick uses the fieldset and legend tags to create a nicely bordered box with a title. It is straight HTML.

Originally this was proprietary to IE, but it has been adapted by Mozilla Firefox. In IE the corners are nicely rounded. In Firefox they are square.
 
Code


 
Instructions
Simply copy this code to your HTML page. It will fill the entire available horizontal area. To constrain it, you can enclose it in a div or a table cell.
 
Keywords:html box, html rounded corners, legend, fieldset, internet explorer, mozilla firefox
 

Lee's Code programming tips and tricks. Back to top of page.

Programming tips and tricks for ASP, javaScript, SQL, SML, CSS, HTML HOME | ABOUT LEE | CONTACT | SEARCH
 
Copyright © 2001 - 2010 by Lee A. Shurie