Skip to content

Commit

Permalink
issue E-Cell-VSSUT#5 resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Tusar7684 authored Oct 15, 2022
1 parent 9bd708b commit 2c8653b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Tusar/Center an image without using flexbox/with_grid.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!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>Center An Image</title>
<style>
div {
display: grid;
place-items: center;
}
</style>
</head>
<body>
<div>
<img src="Google.png" alt="Google" />
</div>
</body>
</html>
25 changes: 25 additions & 0 deletions Tusar/Center an image without using flexbox/with_margin.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!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>Center An Image</title>
<style>
img {
display: block;
margin: 0 auto;
}
img {
display: block;
margin: 0 auto;
width: 40%;
}
</style>
</head>
<body>
<div>
<img src="Google.png" alt="Google" />
</div>
</body>
</html>

0 comments on commit 2c8653b

Please sign in to comment.