webspider25 Posted November 21, 2007 Share Posted November 21, 2007 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 More sharing options...
Ingolme Posted November 21, 2007 Share Posted November 21, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.