A task I'm attempting; model a certain html page to look like the Google home page. I am struggling to centre the search bar and the buttons using CSS.
div.search {
display: block;
margin-left: auto;
margin-right: auto;
}
<div class="search">
<form action="https://google.com/search">
<br><input type="text" name="q"></br>
<input type="submit" value="Google Search">
<input type="submit" value="I'm Feeling Lucky">
</form>
</div>
But the positions of the search box and two buttons don't change.