CSS: Make Link and Input Button Look the Same

Using only CSS and valid HTML4, how can we get the link and input button to look exactly the same?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Examples</title>
<style type="text/css">

input, a {
	text-transform: capitalize;
	color: #6e6e6e;
	text-align: center;
	font: bold 12px Helvetica, Arial, sans-serif;
	text-decoration: none;
	padding: 3px 7px;
	position: static;
	display: inline-block;
	background: #F6F6F6;
	border: solid 1px #dcdcdc;
	cursor: pointer;
	height: auto;
	width: auto;
	overflow: visible;
	margin: 10px;
}

</style>
</head>
<body>
 <p>
  <a href="/continueshopping/">Continue Shopping</a>

  <input type="button" value="Continue shopping" /><br />
  <input type="button" value="Continue shopping" /><br />
 </p>
</body>
</html>

Open in new window

LVL 16
hankknightAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
Looks the same, what browser?
0
GaryCommented:
Think it's FF you're seeing the problem in so add this before your css
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
InsoftserviceCommented:
text-decoration: underline;
 
 
input.button {
    cursor: pointer;
    cursor: hand;
        background-color: transparent;
    text-decoration: underline;
}


.button {
    font: bold 11px Arial;
    text-decoration: none;
    background-color: #EEEEEE;
    color: #333333;
    padding: 2px 6px 2px 6px;
    border-top: 1px solid #CCCCCC;
    border-right: 1px solid #333333;
    border-bottom: 1px solid #333333;
    border-left: 1px solid #CCCCCC;
   }

<a href="somepage.html"><button type="button">Text of Some Page</button></a>
0
Vinay RajputSr. UI LeadCommented:
Hi Hanknight,

I guess IE is not behaving properly with the input tag, and its showing it pressed on click,

which i have solved by adding a input:active class,

PFA file
linka.html
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.