css for button

A

Anonymous

Guest
Can you help me to create a css in the image.

Plz see the image at http://www.writely.com/View.aspx?docid=bds46xkhwzpg

Thanks
 
I'm not sure what font you used, but this is getting close:

Code:
<html>
<head>
<style>
div.button {
	display: inline;
	border: 1px solid #666;
	width: auto;
}
input.button {
	font-family: Arial;
	font-size: 8px;
	font-weight: bold;
	color: #333333;
	background: #b4c9d3;
	border: 1px solid #fff;
	height: 13px;
	padding: 0;
	margin: 0;
}
</style>
</head>
<body>
<div class="button"><input type="button" class="button" value="Browse" /></div>
</body>

You need to place a div around it because you want to have 2 borders.

Coditor
 
Code:
<html>
<head>
<style>
div.button {
   display: inline;
   border: 1px solid #666666;
   width: auto;
}
input.button {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: bold;
    color: #333333;
    background: #b4c9d3;
    border: 1px solid #ffffff;
    height: 16px;
    padding: 0;
    margin: 0;
}
</style>
 </head>
 <body>
 <div class="button"><input type="button" class="button" value="More" /></div>
 <br>
 <br>
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div class="button"><input type="button" class="button" value="More" /></div></td>
    <td></td>
  </tr>
</table>
 </body>
</html>

When i use this css for a button in table, i don't see border top and border bottom. With button out table is exactly.
Plz help me again. :help:
Thks. :)
 
Try:

Code:
<td height="20"><div class="button"><input type="button" class="button" value="More" /></div></td>

Coditor
 
Hi,

Try this for simple button:

.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}

I hope it helps
 
Back
Top