Skip to content

Commit

Permalink
E-Cell-VSSUT#5 issue solved
Browse files Browse the repository at this point in the history
  • Loading branch information
avipshamishra19 committed Oct 9, 2022
1 parent eeb20b9 commit efda387
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Avipsha Mishra/index2.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="pikachu.png" alt="">
</div>

</body>
</html>
Binary file added Avipsha Mishra/pikachu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit efda387

Please sign in to comment.