I have a total of 6 files that I need to work with. They are as follows:
button_01.png (left side of the button)
button_01-RO.png (rollover effect)
button_02.png (middle part of the button)
button_02-RO.png (rollover effect)
button_03.png (right side of the button)
button_03-RO.png (rollover effect)
Below are the links to the images, listed in the same order as above: https://i.sstatic.net/zunch.jpg https://i.sstatic.net/uTHAq.jpg https://i.sstatic.net/kkWuH.jpg https://i.sstatic.net/y0bhN.jpg
Here is the Fiddle link for reference: http://jsfiddle.net/gC2L3/
I am trying to implement the code below, but I am facing issues with aligning the left and right images properly. They are overlapping the text and not displaying correctly. This is a new challenge for me, and I have tried various solutions without success. I hope to find assistance here. I have already spent over 4 hours attempting different methods, but with no luck. I sincerely request help from the community. Thank you for any assistance provided. The code is almost there, but the left and right images are misaligned.
<style>
li.link-button {
float: left;
background: url('/opserv/assets/button_02.png') repeat-x;
}
.link-button a {
font-family: Arial;
color: White;
text-decoration: none;
background: url('/opserv/assets/button_01.png') left no-repeat;
}
.link-button span {
padding-left: 8px;
padding-right: 8px;
background: url('/opserv/assets/button_03.png') right no-repeat;
}
li.link-button:hover {
float: left;
background: url('/opserv/assets/button_02-RO.png') repeat-x;
}
.link-button:hover a {
font-family: Arial;
color: White;
text-decoration: none;
background: url('/opserv/assets/button_01-RO.png') left no-repeat;
}
.link-button:hover span {
padding-left: 8px;
padding-right: 8px;
background: url('/opserv/assets/button_03-RO.png') right no-repeat;
}
</style>
<ul>
<li class="link-button">
<a href="#"><span>Press Me</span></a>
</li>
</ul>