Skip to content

Commit

Permalink
ISSUE E-Cell-VSSUT#5 SOLVED
Browse files Browse the repository at this point in the history
  • Loading branch information
Amitkumarsatapathy645 committed Oct 8, 2022
1 parent 40bd9f2 commit 978f49f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Amit Kumar Satapathy/index4.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
*{
margin: 0;
padding: 0;
}
img{
width: 200px;
height: 200px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}

</style>
<title>center an image without using flexbox</title>
</head>
<body>
<div class="img">
<img src="OIP (1).jpg" alt="">
</div>

</body>
</html>

0 comments on commit 978f49f

Please sign in to comment.