Skip to content

Commit

Permalink
Merge pull request #277 from SwastikGorai/main
Browse files Browse the repository at this point in the history
issue #5 resolved
  • Loading branch information
IshitaSatpathy authored Oct 25, 2022
2 parents f945608 + 72deda1 commit 87edd1f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Swastik/Image_NoFlexbox/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">
<title>Without flex</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="center-image">
<img src="pix.jpg" alt="picture">
</div>
</body>
</html>
Binary file added Swastik/Image_NoFlexbox/pix.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 Swastik/Image_NoFlexbox/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
img{
height: 500px;
width: 500px;
}
.center-image{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}

0 comments on commit 87edd1f

Please sign in to comment.