Answers for "css line up divs horizontally"

CSS
5

how to center a div vertically and horizontally

.container{	
	margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  	width: /* Define the width here; */
    height: /* Define the height here; */
}

/*You have to define the width and height! */
Posted by: Guest on March-03-2020
0

css display div horizontally

.horizontalBlocks {
    display: inline-block;
  }
Posted by: Guest on September-12-2020

Browse Popular Code Answers by Language