how to use 3 images in a CSS class?

hoangvu

New member
Joined
Jun 6, 2012
Messages
1,844
Points
0
Hello,

I want to create a button with css but using only a class with 3 images in it

my code below, is it right?

Code:
.mybutton{
  background-image: url(/images/middle_pic.png), url(/images/right_pic.png), url(/images/left_pic.png);
  background-position: center, right, left;
  background-repeat: repeat-x, no-repeat, no-repeat;
}
or can you give me other css style?
 
Older threads
Replies
9
Views
3,855
Replies
4
Views
3,084
Replies
1
Views
2,315
Replies
5
Views
2,739
Newer threads
Replies
0
Views
3,942
Replies
22
Views
8,284
Replies
12
Views
4,674
Replies
0
Views
13,604
Latest threads
Replies
1
Views
108
Replies
1
Views
112
Replies
1
Views
172
Replies
1
Views
209
Replies
1
Views
286

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top