Align to center div with variable size

1

Hello, I have a parent div that I set with min-width:800px and max-width:1400px , how do I make this div always align with the center?

    
asked by anonymous 28.05.2014 / 19:34

1 answer

1

Put the automatic margins:

.exemplo {
   min-width:800px;
   max-width:1400px;
   margin-left:auto;
   margin-right:auto;
}
    
28.05.2014 / 19:36