I'm having a hard time aligning this image in the center of my divs.
No matter what I do, the image ends up either slightly off-center or stuck to the edges of the page.
I've experimented with placing it within a row using Bootstrap's grid system, tried flexbox, changed position properties, but nothing has worked so far.
Any help is appreciated!
html,
body {
font-family: 'Arimo', sans-serif;
height: 100%;
margin: 0;
padding: 0;
}
.wrapper {
position: relative;
height: 95%;
}
/* styles for buttons and player panels here */
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Dice Game</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Arimo&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/all.css">
</head>
<body>
<!-- rest of HTML content -->
</body>
</html>
Please refer to the provided image for the desired placement of the dice image on screen.
Ideally, I want the image to be responsive and maintain its position regardless of the viewport size.
Thank you