CSS Border Help -


using current css , not css3, there way of specifying raised type border style somehow emphasize menu. after border has has rounded edge, not rounded corners.

thanks.

with css 2.1 , prior can use double, ridge, groove, inset, or outset. i've put simple demo file play around , test various border styles available you.

<!doctype html> <html> <head>    <meta http-equiv="content-type" content="text/html; charset=utf-8">    <title>border styles</title>    <style type="text/css" media="screen">       body { background: #999; }       div { background: #eee; float: left; margin: 10px; padding: 10px; height: 100px; width: 100px; }       .double { border: 4px double #ccc; }       .ridge { border: 4px ridge #ccc; }       .groove { border: 4px groove #ccc; }       .inset { border: 4px inset #ccc; }       .outset { border: 4px outset #ccc; }    </style> </head> <body>    <div class="double">double</div>    <div class="ridge">ridge</div>    <div class="groove">groove</div>    <div class="inset">inset</div>    <div class="outset">outset</div> </body> </html> 

you cannot make rounded-corner without css3 spec border-radius property. if want should use script modernizr provide alternate support browsers cannot support css3.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -