HTML5 rounded corners
This first example is using the division element, and rounding all corners, followed by 4 more examples of rounding just one particular corner in a division.
<div style=" background-color: #ccc;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #000;
padding: 10px;" >
</div>
Upper left:
<div style=" background-color: #ccc;
-moz-border-radius-topleft: 5px;
-webkit-border-top-left-radius: 5px;
border: 1px solid #000;
padding: 10px;" >
</div>
Upper right:
<div style=" background-color: #ccc;
-moz-border-radius-topright: 15px;
-webkit-border-top-right-radius: 5px;
border: 1px solid #000;
padding: 10px;" >
</div>
Lower left:
<div style=" background-color: #ccc;
-moz-border-radius-bottomleft: 5px;
-webkit-border-bottom-left-radius: 5px;
border: 1px solid #000;
padding: 10px;" >
</div>
Lower right:
<div style=" background-color: #ccc;
-moz-border-radius-bottomright: 5px;
-webkit-border-bottom-right-radius: 5px;
border: 1px solid #000;
padding: 10px;"
>
</div>
Now a table with rounded corners:
<table
style=" background-color: #ccc;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #000;
padding: 10px;" >
<tr>
<td>Hi
</td>
<td>There
</td>
</tr>
<tr>
<td>World
</td>
<td>and Moon
</td>
</tr>
</table>
A table with rounded corners and a shadow:
<table
style=" background-color: #ccc;
box-shadow:5px -5px 10px #700;
-webkit-box-shadow:5px -5px 10px #888;
-moz-box-shadow:5px -5px 10px #334455;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #000;
padding: 10px;" >
<tr>
<td>Hi
</td>
<td>There
</td>
</tr>
<tr>
<td>World
</td>
<td>and Moon
</td>
</tr>
</table>
Next a table with rounded corners, shadow and background image:
Hi shadow
|
This
|
World
|
and Moon
|
<table width="300" height="300"
style="
background-image: url(images/car2112.jpg);
box-shadow:5px -5px 10px #700;
-webkit-box-shadow:5px -5px 10px #888;
-moz-box-shadow:5px -5px 10px #334455;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #000;
padding: 10px;
-webkit-border-image: url(images/eggstilllife02.png);
-moz-border-image: url(images/eggstilllife02.png);
">
<tr>
<td>Hi shadow
</td>
<td>This
</td>
</tr>
<tr>
<td>World
</td>
<td style="
-webkit-border-image: url(images/eggstilllife02.png);
-moz-border-image: url(images/eggstilllife02.png);
">and Moon
</td>
</tr>
</table>
An image with rounded corners, shadow and a border:
<img width="340" height="256"
src="./images/eggstilllife02.png"
style="
box-shadow:5px -5px 10px #700;
-webkit-box-shadow:5px -5px 10px #888;
-moz-box-shadow:5px -5px 10px #334455;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #000;
padding: 10px;
">
An image with rounded corners, shadow and no border:
<img width="340" height="256"
src="./images/eggstilllife02.png"
style="
box-shadow:15px -15px 10px #700;
-webkit-box-shadow:15px -15px 10px #888;
-moz-box-shadow:15px -15px 10px #334455;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border: 0px solid #000;
padding: 0px;
">
A background image in a table with with rounded corners, and background images for two cells: