<style> #warningMain { border-radius: 5px; height: 100px; width: 300px; background-color: red; text-align: center; } #warningMain h2 { padding: 5px; } </style> <main id="warningMain"> <h2>Warning!</h2> <p>This world is close to its limit!</p> </main>