Jump to content

Help in Coading of button


webspider25

Recommended Posts

Hi,I have a button that i have designed in the photoshop and after that i slice that...........I took its right side slice and left side slice and also 1px center slice.....for the codeing in html but now I am not able to code that....I know that i haveto put the image in background and call it repeatedly but not able to do that so pls help me outand if there is any site regarding this let me knowThanks For Help In advanceBYe

Link to comment
Share on other sites

Well, putting it inside the button tag would help you make a layout if you wanted it to be a real button:

<button class="main"><div class="left"><div class="right">Button text</div></div></button>

CSS:

.main {background: url(backgroundimage.jpg) center center repeat-x;text-align: center;height: /* Put button height here */px;.left { background: url(left-button-image.jpg) center left no-repeat; }.left { background: url(right-button-image.jpg) center right no-repeat; }

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...