CSS Sprites + Rounded Corners – step 1

Web Design 1 Comment »
This version of dealing with rounded corner box is consist of 4 absolute positioned div, each div has its own image to be used in CSS Sprite control. We will do it as following:
What makes this techique so cool?
There is no constraint on the width and height when applying rounded-bordered elements. This technique as we have mentioned earlier, cooperates with CSS Sprites. If you have no idea of what CSS Sprites is and how it works, please firstly read this article.
First step: Create our Sprite
1. select a editor for editing rounded-corner image (in this case I chose Firework).

2. cut out the rounded corner to a temporary location, which we will use it later.

3. create a new file, put all the rounded corners to this new file, copy it three times, and turn the other three copies into other three corners.

4. put them together and form one picture, and use 1px red line to divide them.

5. export the edited picture, sprite is now completed.
Edited By Dan Li



















Recent Comments