Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved Issue #5 #225

Merged
merged 1 commit into from
Oct 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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%);
}