I have a code snippet and I'm aiming to align the caption for my "DigDug" game directly below the game itself, perfectly lined up horizontally. The id for the caption is "#DigCaption" and the id for the game is "#DigDug". Could anyone provide guidance on achieving this alignment? Your assistance is greatly appreciated!
/*CSS file - Patrick White*/
body {
width: 75%;
margin: auto;
/*vertical center*/
font-size: 1em;
font-weight: bold;
font-family: "Century Gothic", Palatino, Georgia, Serif;
color: #02849D;
/*dark navy blue*/
text-align: left;
position: relative;
background: url('../Images/Black_Rainbow.jpg');
background-size: cover;
background-repeat: no-repeat;
/*boxing, borders, and padding*/
padding: 0.35em;
border-style: double;
border-color: #006E5F;
min-width: 1200px;
min-height: 950px;
}
body.video_games {
min-height: 1030px;
}
h1 {
font-family: Rockwell, Baskerville, Warnock, Serif;
font-size: 225%;
font-weight: bold;
color: #02849D;
text-align: center;
padding: 1%;
border-style: solid;
border-color: #006E5F;
}
...
<!DOCTYPE html>
<html lang="en">
<head>
<link type="text/css" rel="stylesheet" href="Styles/MyStyle.css" media="screen">
<link rel="icon" href="Images/favicon-16x16.png" type="image/png">
<title>Web Portfolio: Patrick White's Video Games Page</title>
</head>
<body class="video_games">
<div class="box" id="skipnav">
<a href="#main">Skip to main content</a>
</div>
<h1>Video Games</h1>
<div class="nav_menu">
...
</body>
</html>