I'm trying to center my div #center
and to make it responsive to different screen sizes. I have no luck in doing that. Here's the body of my HTML page.
<body>
<h1 id="panneau">Panneau de score</h1>
<div id="center">
<div class="temps" id="temps">0:00</div>
<div class="score" id="score">0</div>
<div class="scoreDeux" id="scoreDeux">0</div>
<h2 id="Locaux">Locaux</h2>
<h2 id="Visiteurs">Visiteurs</h2>
</div>
<center><img id="EquiLogo" src="EquinoxeLogo.png" alt="Equinoxe Logo"/></center>
</body>
Here's #center
's CSS:
#center {
width: 1100px;
height: 1100px;
margin: 0 auto;
}
Here's the body's CSS:
body {
max-height: 300%;
background: linear-gradient(315deg, #808080, #a6a6a6, #ff8080, #ff4d4d);
background-size: 3000% 3000%;
background-position: center;
background-attachment: fixed;
}