-1
When adding a letter in value, the button increases to fit and defaces the entire alignment. I know who with tables would be easier and better, but I want to make it work with buttons
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GAM</title>
<style type="text/css" >
.modif{
margin: 2px;
padding: 5%;
font-size: 10px;
text-align: center;
color: black;
border: 3px solid #4F4F4F;
border-radius: 6%;
}
.modif:hover {
background-color: #4F4F4F;
color: white;
}
.velha{
margin-left: 40.6%;
margin-top: 1%;
}
.novoj{
padding: 1%;
font-family: verdana;
font-size: 100%;
margin-left: 7%;
border-radius: 5px;
border-color: #4F4F4F;
font-family: 'Press Start 2P', cursive;
}
.novoj:hover {
background-color: #CD950C;
color: white;
}
h3{
margin-left: 1.5%;
font-family: 'Press Start 2P', cursive;
}
</style>
</head>
<body>
<div class="velha">
<input class="modif" type="button" value="x" /><input class="modif" type="button" value=""/><input class="modif" type="button" value=""/><br/>
<input class="modif" type="button" value=""/><input class="modif" type="button" value=""/><input class="modif" type="button" value=""/><br/>
<input class="modif" type="button" value=""/><input class="modif" type="button" value=""/><input class="modif" type="button" value=""/><br/>
<br><input type="button" class="novoj" value="New" onclick="RELOAD();" />
</div>
<script>
</script>
</body>
</html>
You zeroed margin and padding before you start styling?
– vicckm
By adding 1 letter to the button, it expands and defaces all http://prntscr.com/pk87pg . Even with padding and zeroed margin that is not the case with print ...
– RtxLéo