Thread: Rounded Corners
View Single Post
02-15-2009, 04:02 PM
#14
AndyR is offline AndyR
Status: Member
Join date: Jan 2009
Location: UK :D
Expertise:
Software:
 
Posts: 490
iTrader: 14 / 100%
 

AndyR is on a distinguished road

Send a message via MSN to AndyR

  Old

HTML Code:
<div class="box">
  <i class="t"><i></i></i>

  <!-- Content Stuff -->

  <i class="b"><i></i></i>
</div>
Code:
.box .t, .box .t i,
.box .b, .box .b i {
  background: url('corners.gif') no-repeat;
  display: block;
  height: 5px
}

.box .t i { background-position: 100% -5px }
.box .b { background-position: 0 -10px }
.box .b i { background-position: 100% -15px }

Why don't you use this? Better than using css3