I have a round design for a button that I want to use on the page.
Let's say I spliced up the button and have
leftBorder.jpg
rightBorder.jpg
backgroundB.jpg
divider.jpg
How would I display it properly?
THe way I am doing it right now (and it's not working) is like this
index file:
css file
Let's say I spliced up the button and have
leftBorder.jpg
rightBorder.jpg
backgroundB.jpg
divider.jpg
How would I display it properly?
THe way I am doing it right now (and it's not working) is like this
index file:
<!-- opens buttons div -->
<div id="buttons">
<div id="buttonLeft"></div>
Home
<div id="buttonDivider"></div>
Our Service<
<div id="buttonRight"></div>
</div>
<!-- closes buttons div -->
css file
/* buttons */
#buttons {
width: 100%; /* header is as wide as our containing element, the wrapper */
height: 40px; /* height from our layout */
margin: 0 auto; /* centers the layout in standards based browsers */
border: 1px solid #63DDDD;
background: url(images/backgroundB.jpg) repeat-x;
}
#buttonLeft {
width: 6.0px; /* header is as wide as our containing element, the wrapper */
height: 40px; /* height from our layout */
/*margin: 0 auto; *//* centers the layout in standards based browsers */
border: 0px solid #63DDDD;
background: url(images/leftBorder.jpg) repeat-y;
}
#buttonRight {
width: 13.0px; /* header is as wide as our containing element, the wrapper */
height: 40px; /* height from our layout */
border: 0px solid #63DDDD;
background: url(images/rightBorder.jpg) repeat-y;
}
#buttonDivider {
width: 8.0px; /* header is as wide as our containing element, the wrapper */
height: 40px; /* height from our layout */
/*margin: 0 auto; *//* centers the layout in standards based browsers */
border: 0px solid #63DDDD;
background: url(images/divider.jpg) repeat-y;
}
Last edited: