I looked around the Web and couldn't find a solution to this. So I'm going to ask the question myself.
How would I center my text in HTML? I don't mean center as in "text-align:center;" I mean, center it entirely. Like make sure the text is directly in the middle of your webpage on one line. Thanks in advance.
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<title>CSGOCarry.com | Win Big!</title>
<link rel="stylesheet" type="text/css" href="csgositecss.css">
</head>
<body>
<div class="container">
<div class="center">
<h1>Welcome to CSGOCarry</h1>
</div>
</div>
</body>
</html>
CSS:
body {
background-image: url("csgocarryback.jpg");
background-size: 100%;
}
h1 {
color:white;
text-align:center;
font-size:50px
}
.container {
}
.center {
}
Note: I have tried making the text centered in the center block. But I'm having trouble doing so.