Skip to content

Instantly share code, notes, and snippets.

@hughbris
Created June 3, 2015 06:40
Show Gist options
  • Save hughbris/4506800f8be77433f4ee to your computer and use it in GitHub Desktop.
Save hughbris/4506800f8be77433f4ee to your computer and use it in GitHub Desktop.
Design pattern: form submit button
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-NZ" lang="en-NZ"> <!-- bru -->
<head>
<title>Turn it in now</title>
<style type="text/css">
/* <![CDATA[ */
.button {
display: inline-block;
color: #cfc;
font-weight: bold;
margin: 0.5em;
padding: 0.3em 0.5em;
min-width: 100px;
border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px;
}
input.submit {
float: right;
background-color: #4b4;
}
/* ]]> */
</style>
</head>
<body>
<form action="" method="POST">
<!-- {controls} -->
<input class="button submit" type="submit" value="Send" id="submit" />
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment