Skip to content

Commit

Permalink
Merge pull request #225 from Sajal24/Sajal_ImgWoutF
Browse files Browse the repository at this point in the history
Resolved Issue #5
  • Loading branch information
IshitaSatpathy authored Oct 18, 2022
2 parents 5f41221 + 60d86ff commit a51bc9e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Sajal_ImageWithoutFlex/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css" />
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Images</title>
</head>
<body>
<div class="container">
<img
src="https://i.pinimg.com/564x/22/dc/c6/22dcc6681b73280b843cb404bf7ca5a2.jpg"
alt=""
/>
</div>
</body>
</html>
15 changes: 15 additions & 0 deletions Sajal_ImageWithoutFlex/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
* {
margin: 0;
padding: 0;
}

.container {
height: 100vh;
}

img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

0 comments on commit a51bc9e

Please sign in to comment.