Sign in
Google apps
Main menu
Post a Comment On:
j4neiros
"Centering an image horizontally and vertically in HTML5"
No comments yet. -
1 – 0 of 0
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Logo</title>
</head>
<style>
img {
position: absolute;
top: 50%;
left: 50%;
width: 800px;
height: 800px;
margin-top: -400px; /* Half the height */
margin-left: -400px; /* Half the width */
}
</style>
<body>
<img src="Logo.png" />
</body>
</html>
posted by J. Ernesto Aneiros at
11:33 AM
on Feb 3, 2017
Leave your comment
You can use some HTML tags, such as
<b>, <i>, <a>
Choose an identity
Google Account
You will be asked to sign in after submitting your comment.
Name/URL
Comment with your Google account if you’d like to be able to manage your comments in the future. If you comment anonymously, you won’t be able to edit or delete your comment.
Learn more
Name
URL
Anonymous
Comment with your Google account if you’d like to be able to manage your comments in the future. If you comment anonymously, you won’t be able to edit or delete your comment.
Learn more
Please prove you're not a robot
"Centering an image horizontally and vertically in HTML5"
No comments yet. -