* {
font-family: sans-serif;
}
h1 {
padding: 24px;
display: inline-block;
border-radius: 25px;
border-width: 10px;
border-style: groove;
border-color: #0055FF;
text-shadow: 2px 2px 2px #333;
color: white;
background-color: #00CCFF;
-webkit-box-shadow: inset 10px 10px 5px #333;
}
.h1center {
text-align: center;
}
and this HTML:
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="distconv.css" type="text/css" /> <script src="http://code.jquery.com/jquery-latest.min.js"> </script> <script src="distconv.js"> </script> <title>Distance Converter</title> <h1 class="h1center">Distance Converter</h1> <hr /> </head> <body> </body> </html>
and I'm wondering why the CSS won't center the h1 tag.
I've tried using margin: auto; and a few other things but nothing has worked. There is no Javascript involved(The distconv.js file is empty.)
I'm using google chrome

New Topic/Question
Reply


MultiQuote





|