Answers for "center div inside div css"

CSS
1

align a div in center of another div

#container {
    width: 640px; /*can be in percentage also.*/
    height: auto;
    margin: 0 auto;
    padding: 10px;
    position: relative;
}
Posted by: Guest on April-30-2020

Code answers related to "center div inside div css"

Browse Popular Code Answers by Language