views:

84

answers:

3

how to make round corner of div in css and I have menu list items

 <div class="menu">
    <ul>
      <li class="active"><a href="index.html">HOME</a></li>
      <li class="active"><a href="#">COMPANY</a></li>
      <li class="active"><a href="#">SOLUTIONS</a></li>...

how to round corners of li items

+1  A: 

Standards-aware solution would be to use border-radius of CSS 3.

See http://www.css3.info/preview/rounded-border/

Ain
but its not going to work in IE
Pranay Rana
@pranay_stacker: It will in future versions. Meanwhile, it's good enough and more important features can be addressed -- instead of trying to make bad browsers look good.
Brock Adams
Agreed with @Brock. The best practice would mean feature-based filtering instead of browser sniffing. If border-radius is not on, use one of those JS libraries that achieve the same border-radius functionality. IE should not determine the implementation, but suffer of slower performance over its obsolete engine. Unfair to make modern platforms suffer instead.
Ain
A: 

I currently use this implementation which works great in IE7,8, FF, Chrome.

UserControl
+1  A: 
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;

As noted earlier, this will not work in IE. But the newer version of IE will support it I believe (correct me if I'm wrong, please).

Worst case scenario, IE users will not see rounded corners. For more about the border radius property the following is a good article.

Russell Dias