Im making template for wordpress and I can't solve this problem:
I have my style for navigations:
<style>
body {
background: #FFFBD0;
}
/* Navigation */
ul {
list-style-type:none;
margin:0;
padding:0;
}
.menu-item
{
padding: 22px 20px 22px 20px;
background:url('images/button_brown.png') no-repeat;
display:inline;
}
a {
color: #FFFBD0;
text-decoration:none;
}
</style>
and my navigations:
<div class="div-menu">
<ul id="menu" class="menu">
<li class="menu-item"><a href="">Home</a></li>
<li class="menu-item"><a href="">Button 2</a></li>
<li class="menu-item"><a href="">Button 3</a></li>
</ul>
</div>
now Im trying to style buttons like that:
You don't need to use an image background for this. You can do it with
background-colorandborder. You set theato have a border, dotted and white. Then you give thatathe main padding. You then set theliwhich contains theato have a very small bit of padding. Give theliabackground-colorand you are good to go.Working Fiddle
Code
HTML:
CSS:
Goal:
Result: