Things You'll Need:
- HTML editor
- CSS style sheet
-
Step 1
Establish where the rounded borders will go in your web page.
-
Step 2
Create the following tags in your HTML page around this area. They must be placed in order. <div class="t"><div class="b"><div class="l"><div class="r"><div class="bl"><div class="br"><div class="tl"><div class="tr">Your text info, or graphic here... </div></div></div></div></div></div></div></div> This builds the corners.
-
Step 3
Open your CSS style sheet and put these tags into it: .bl {background: url(bl.gif) 0 100% no-repeat} .br {background: url(br.gif) 100% 100% no-repeat} .tl {background: url(tl.gif) 0 0 no-repeat} .tr {background: url(tr.gif) 100% 0 no-repeat; padding:10px} . The result is four corners with round arcs around your text or image.
-
Step 4
Blot out the typical border that goes around the rounded corner images by creating a small, white dot, called dot.gif, that is the same size as the border.
-
Step 5
Add new CSS rules to your style sheet that call up this border blocker (the dot.gif image) so it goes around the edges of the border, blotting out the square lines around the arced corners. The rules are: .b {background: url(dot.gif) 0 100% repeat-x} .l {background: url(dot.gif) 0 0 repeat-y} .r {background: url(dot.gif) 100% 0 repeat-y}
-
Step 6
Test the borders and make corrections to your code if needed.














