Align to center div with variable size

Asked

Viewed 206 times

1

Hi, I have a div dad I’ve set up with min-width:800px and max-width:1400px, how do I make this div always align to the center?

1 answer

1

Place the automatic margins:

.exemplo {
   min-width:800px;
   max-width:1400px;
   margin-left:auto;
   margin-right:auto;
}
  • Just what I wanted, thanks!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.