Hello reader.
I’m at the part of the freeCodeCamp course where you have to make a tribute page. Trying to imitate the style of the example project, I decided to put all of the content into a centered div and make the background color grey. However, I’m unsure if the content is appearing in the div and it won’t center on the page. How do you guys work with these divs? What am I doing wrong? I feel like what I’m doing should work.
Here’s the html so far:
<!Doctype html>
<html>
<head>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet">
<link href="index.scss" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
</head>
<body>
<div id="GrayCube">
<h1>Eduard Khil</h1>
<img src="http://russia-ic.com/img/people/eduard_khil_000.jpg">
</div>
</body>
</html>
And here’s the css stylesheet:
#GrayCube
{
height: 1600px;
background-color: grey;
margin: auto;
}
#GrayCube h1
{
font-family: Muli;
}