0

IE once again proved its incompetency against other web browsers, is there no other way to round the corners of the table if putting a background color as its header except usign an image? These are my codes:

CSS

.table1
{
    -moz-box-shadow: 1px 0 5px #888;
    -webkit-box-shadow: 1px 0 5px #888;
    box-shadow: 1px 0 5px #888;
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    text-align:justify;
    margin: 1em auto;
    padding: 0;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px thin;
    border-collapse: separate;

}
.color
{
    background-color:#66F;
}

HTML

<table class="table1" style="margin-left:18px"align="left" width="400" border="0">
  <tr>
    <td class="color" height="25">
</td>
  </tr>
  <tr>
    <td style="padding-left:20px; padding-right:20px; margin-top:20px" height="285"><span style="font-weight:bold; font-size:16px">Some text</span> Some text<br /><br />
     <span style="font-weight:bold; font-size:16px">Some text</span> Some text</td>
  </tr>
</table>
3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by AleMonteiro
0

I just tested and it seems to work fine in IE 9.

With one detail: you must set the doctype to HTML 5

<!DOCTYPE html>
0

Yes, the code above does produce rounded corners in IE9, but not earlier versions of IE.

0

JorgeM,

corner-radius is a CSS 3 feature. It'll not work on earlier versions of any browser.

From W3Scholls:

The border-radius property is supported in IE9+, Firefox 4+, Chrome, Safari 5+, and Opera.

Edited by AleMonteiro

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.