I have a div with an inline-block display so that it wrapps nicely its content. What I am trying to do is to center that div horizontally and vertically using the different technics I already used, the one I read on posts, but nothing working. Hope someone can help. Thank you in advance for your replies. Cheers. Marc..
my html:
<div>
  <input type='text'>
  <input type='text'>
  <input type="submit">
</div> 
my css:
div{
display:inline-block;
padding:5px;
background:grey;
top:50%;
margin-left:auto;
margin-right:auto;}
 
     
     
    