I have a code that I’m using to create boxes that has round corners. The code is long and I’m sure there’s a better way to make a box that will adjust by the amount of text and still, have 4 different coreners.
So this is the code:
[code=php]
.locationaBarTopCornersHolder {width: 400px; height: 11px; background: #E6E5F5;}
.locationaBarCornerTL {background: #E6E5F5 url(‘CornerTL.jpg’) no-repeat; width: 11px; height: 11px; float: left;}
.locationaBarCornerTR {background: #E6E5F5 url(‘CornerTR.jpg’) no-repeat; width: 11px; height: 11px; float: right;}
.locationaBarBody {width: 378px; padding: 0px 11px 0px 11px; background: #E6E5F5; font: 1.1em Verdana, Arial, Helvetica, sans-serif; line-height:1.6em; margin: 0px;}
.locationaBarBottomCornersHolder {width: 400px; height: 11px; background: #E6E5F5;}
.locationaBarCornerBL {background: #E6E5F5 url(‘CornerBL.jpg’) no-repeat; width: 11px; height: 11px; float: left;}
.locationaBarCornerBR {background: #E6E5F5 url(‘CornerBR.jpg’) no-repeat; width: 11px; height: 11px; float: right;}
Please let me know if there’s any way I can make it shorter and still make it work on IE and FF OR maybe there’s a better way to do what I’m trying to do here.
Thanks!