Skip to content

Instantly share code, notes, and snippets.

@tacitochaves
Created March 3, 2015 00:05
Show Gist options
  • Save tacitochaves/39a2ec583a44f9d1c09e to your computer and use it in GitHub Desktop.
Save tacitochaves/39a2ec583a44f9d1c09e to your computer and use it in GitHub Desktop.
Exemplo de grid html . css
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style>
table {
margin-top: 50px;
font-family: Verdana, Arial;
font-size: 12px;
}
th {
border: 1px solid #999999;
padding: 5px;
}
td {
border: 1px solid #999999;
}
.desc {
width: 60%;
}
.desc2 {
width: 98%;
}
span {
display: block;
font-size: 10px;
font-style: italic;
color: blue;
}
.centralizar {
text-align: center;
}
input {
border: none;
padding: 5px;
}
.menor {
//width: 55px;
vertical-align: middle;
}
</style>
</head>
<body>
<aside>
<table>
<tbody cellpadding="0">
<tr>
<th class="desc">Descrição do produto</th>
<th>Quantidade<span>por produto</span></th>
<th>Preço<span>unitário</span></th>
<th>Subtotal</th>
</tr>
<tr>
<td><input class="desc2" type="text" value="Mamão"></td>
<td><input class="centralizar menor" type="text" value="5" size="6"></td>
<td><input class="centralizar menor" type="text" value="2,00" size="6"></td>
<td><input class="centralizar menor" type="text" value="10,00" size="6"></td>
</tr>
</tbody>
</table>
</aside>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment