body{ background-image: linear-gradient(70deg,rgb(177, 229, 245), rgba(255, 255, 255, 0.3)); } #title h1{ position: absolute; /* top: 50%; */ /* left: 50%; */ /* transform: inherit; */ margin: 0; } #title{ position: absolute; display: flex; justify-content: center; align-items: center; top:42%; left:50%; transform: translate(-50%,-50%); font-size: 250%; font-family: 'Dancing Script', cursive; color:rgb(63, 61, 61); margin: 0; min-height: 20%; min-width: 30%; /* border: 1px solid; */ } a{ text-decoration: none; } #examples, #api{ display: flex; position: absolute; /* position: absolute; */ min-height: 30px; min-width: 130px; justify-content: center; align-items: center; border: 2px solid navy; padding: 10px; top: 55%; /* transform: translate(-50%, 0); */ } #examples{ left: 52%; /* top: 55%; */ /* transform: translateY(0,50%px); */ } #api{ /* top: 50%; */ left: 41%; } #text{ position: absolute; display: block; background-color:chocolate; color: rgb(255, 250, 250); width: fit-content; padding: 10px; left: 1000px; top: 650px; font-family:Georgia, 'Times New Roman', Times, serif, cursive; } #square{ position: absolute; height: 250px; width: 250px; background-color: blue; top: 300px; transform: translate(225%, 150%); } #circle{ position: absolute; top: 250px; transform: translate(700%, 110%); border-radius: 50%; height: 200px; width: 200px; background-color: red; } #oval{ position: absolute; top: 10px; transform: translate(150%, 50%); border-radius: 50%; height: 150px; width: 250px; background-color: cyan; } @media screen and (max-width:1440px){ #examples{ left: 55%; } #api{ left: 38%; } } @media screen and (max-width:1000px){ #examples{ left: 60%; } #api{ left: 30%; } } @media screen and (max-height:800px){ #examples, #api{ top: 55%; } }