virtual3oy
06-20-2010, 11:42 PM
I want to make a list with nice buttons that are long as the screen (compatible with more screens)....
I will use 3 images (left , middle and right) ... something like this (of course, smaller):
http://h.imagehost.org/0484/1_87.png
The middle part will repeat itself to "fill" the button. I want to get something like this:
http://h.imagehost.org/0221/bs.png
I have 2 ideas:
1) To make an <div> with background-image:url('middle.bmp'); background-repeat:repeat-x; and in that <div> to have another 2 <div>s one with left.bmp (and placed left) and another one with right.bmp (and placed right) ....
(tried it but can't make it work good, I only see the left image and the repeted middle one )
2) To make an <div> containet that have 3 <div>s inside :
one div with the left image as background (placed at the left)
one div in the middle with the repeted middle image
one div with the right image as background (placed at the right)
Please help me .... also, what is better image format for the images on the web: JPG or PNG ?
I will use 3 images (left , middle and right) ... something like this (of course, smaller):
http://h.imagehost.org/0484/1_87.png
The middle part will repeat itself to "fill" the button. I want to get something like this:
http://h.imagehost.org/0221/bs.png
I have 2 ideas:
1) To make an <div> with background-image:url('middle.bmp'); background-repeat:repeat-x; and in that <div> to have another 2 <div>s one with left.bmp (and placed left) and another one with right.bmp (and placed right) ....
(tried it but can't make it work good, I only see the left image and the repeted middle one )
2) To make an <div> containet that have 3 <div>s inside :
one div with the left image as background (placed at the left)
one div in the middle with the repeted middle image
one div with the right image as background (placed at the right)
Please help me .... also, what is better image format for the images on the web: JPG or PNG ?