Skip to content

Commit

Permalink
Resolve Issue E-Cell-VSSUT#5
Browse files Browse the repository at this point in the history
  • Loading branch information
preritjn committed Oct 10, 2022
1 parent 8a0369d commit cc7eb6f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
Binary file added Prerit Kumar Jain/Issue No. 5/image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions Prerit Kumar Jain/Issue No. 5/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!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">
<link rel="stylesheet" href="styles.css">
<title>Centering Image without Flexbox</title>
</head>
<body>
<div class="box">
<img src="image.jpg">
</div>
</body>
</html>
14 changes: 14 additions & 0 deletions Prerit Kumar Jain/Issue No. 5/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
body {
margin: 0;
}

.box {
position: relative;
}

img {
display: block;
width: 50%;
padding: 10% 0;
margin: 0 auto;
}

0 comments on commit cc7eb6f

Please sign in to comment.