Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- section {
- background: red;
- border: 2px solid black;
- text-align:center
- }
- article {
- background: yellow;
- display: inline-block;
- border: 2px solid black;
- width: 30%;
- margin: 5px 0;
- height: 300px;
- position: relative;
- }
- p {
- margin: 0;
- position: absolute;
- top: 50%;
- left: 50%;
- -ms-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- }
Add Comment
Please, Sign In to add comment