Skip to content

Commit

Permalink
Merge pull request #87 from Bibekmeher/main
Browse files Browse the repository at this point in the history
issue#4 is resolved
  • Loading branch information
IshitaSatpathy authored Oct 9, 2022
2 parents a90ccdd + efd5906 commit 2b71b68
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
Binary file added Bibek Kumar Meher #3/ABD.webp
Binary file not shown.
17 changes: 17 additions & 0 deletions Bibek Kumar Meher #3/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style.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>Center an image using flexbox</title>
</head>
<body>
<div class="box">
<div class="imgwrap">
<img src="ABD.webp" alt="loading...">
</div>
</div>
</body>
</html>
16 changes: 16 additions & 0 deletions Bibek Kumar Meher #3/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.box {
display: flex;
align-items: center;
justify-content: center;
}
.imgcontainer {
width: 50%;
margin: auto;
}
.imgcontainer img {
display: block;
width: 100%;
max-width: 500px;
height: auto;
margin: auto;
}

0 comments on commit 2b71b68

Please sign in to comment.