I'm trying to centralize my search form in the center of my div but I'm not getting any property in css that does this without the need to ganbiarra? here is the development page
index.html
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="#" >
</script>
</head>
<body>
<div>
<form action="search.php" method="GET" class="fc">
<input type="text" autocomplete="on" name="q" placeholder="Digite a sua pesquisa" />
<input type="submit" value="Tecle Enter" />
</form>
</div>
</body>
</html>
style.css
* {
margin: 0;
padding: 0;
vertical-align: baseline;
}
html body {
background-color: ghostwhite;
}
body div {
display: block;
width: 90%;
height: 123px;
margin: 0 auto;
border: 2px dashed black;
}
div .fc {
margin: 0 auto;
}
See how many margin: 0 auto;
in my div
and in my class .fc
but not working
result na navigator