Admittedly, I am not the best coder (only 14 years old), but I need to center the inline-block element, but no matter what I do, it refuses to be centered.
I’ve tried using the “margin:auto” & width combo, but that didn’t work… I also crossed the margin-left trick out because I want the element to look the same on all devices. Could someone help me out?
> <head>
> <style>
> a:link, a:visited {
> text-decoration: none!important;
> }
> body {
> background-color: #051522;
> }
> p {
> font-family: 'Raleway', sans serif;
> font-size: 13px;
> letter-spacing: 1px;
> line-height: 200%;
> color: #898989;
> }
> h4 {
> font-family: 'Lobster', cursive;
> font-size: 26px;
> color: #878787;
> }
> a {
> display: inline-block;
> color: #898989;
> text-align: center;
> padding: 14px 16px;
> text-decoration: none;
> border-right: 1.3px solid #6d6d6d;
> font-family: 'Julius Sans One', sans-serif;
> font-size: 15px;
> text-transform: uppercase;
> letter-spacing: 1px;
> }
> a:hover:not(.active) {
> background-color: #444444;
> transition-duration: 0.6s;
> }
> .active {
> background-color: #666666;
> color: #FFFFFF;
> }
> </style>
> <title>Emerald Scar</title>
> <link href="https://fonts.googleapis.com/css?family=Julius+Sans+One|Lobster|Open+Sans|Raleway" rel="stylesheet">
> <div style="position: absolute;top: 0px;left: 0px;"><img src="http://i.imgur.com/tRkMr8r.jpg"></div>
> </head>
> <body style="text-align: center;">
> <center>
> <div style="position: absolute;top: 570px;width: 70%;">
> <a class="active" href="#1">link 1</a>
> <a href="http://www.hexrpg.com/wishlist/index.php?view=Emerald%20Scar">link 2</a>
> <a href="http://www.hexrpg.com/owl/Emerald%20Scar">link 3</a>
> <a href="http://www.hexrpg.com/trophy/index.php?user=Emerald%20Scar">link 4</a>
> <a href="http://www.hexrpg.com/my.php">link 5</a>
> </div></center>
> <div style="position: fixed;left: 0px;top: 0px;opacity: 0.6;background-color: #bababa;border: 1.3px solid #878787;color: white;padding: 5px;text-shadow: -3px 2px 3px #000000;font-family: 'raleway', sans serif;font-size: 13px;text-transform: uppercase;border-bottom-right-radius: 10px;">Made by Christinagrande007</div>
> <center>
> <div style="width: 917px;height: 200px;border: 2px solid #a5a5a5;overflow: auto;padding: 30px;margin-bottom: 30px;margin-top: 730px;">
> <div class="main">
> <h4>About Me</h4>
> <p>text
> </div>
> </div>
> </center>
> </body>
> <style type="text/css">
> ::-webkit-scrollbar {
> width: 5px;
> height: 5px;
> }
> ::-webkit-scrollbar-button {
> width: 0px;
> height: 0px;
> }
> ::-webkit-scrollbar-thumb {
> background: #0e5366;
> border: 0px none #ffffff;
> border-radius: 50px;
> }
> ::-webkit-scrollbar-thumb:hover {
> background: #0e5366;
> }
> ::-webkit-scrollbar-thumb:active {
> background: #0e5366;
> }
> ::-webkit-scrollbar-track {
> background: transparent;
> border: 0px none #ffffff;
> border-radius: 0px;
> }
> ::-webkit-scrollbar-track:hover {
> background: transparent;
> }
> ::-webkit-scrollbar-track:active {
> background: transparent;
> }
> ::-webkit-scrollbar-corner {
> background: transparent;
> }
> </style>