Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style type="text/css">
- .container {
- width: 300px;
- height: 400px;
- margin: 50px auto;
- border: 1px solid #ccc;
- display: table;
- }
- .img {
- text-align: center;
- vertical-align: middle;
- display: table-cell;
- }
- img {
- width: 260px;
- height: 350px;
- }
- </style>
- <body>
- <div class="container">
- <div class="img">
- <img src="your_image.jpg">
- </div>
- </div>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement