Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2008
    Posts
    122
    Thanks
    5
    Thanked 0 Times in 0 Posts

    What's wrong with my page that it's not centered?

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    
    <html>
    <head>
      <meta name="generator" content=
      "HTML Tidy for tsWebEditor (www.tswebeditor.tk) (vers 1 July 2005), see www.w3.org">
      <link rel="shortcut icon" href="/favicon-1.ico">
    
      <title>Stylish Knockouts!: Home of the Power Ranger Resurrection Fanfiction and Original Works of Shaun McCall</title>
      <meta http-equiv="Content-Type" content="text/html" charset=
      "iso-8859-1&quot;">
      <link rel="stylesheet" type="text/css" href="Dawn.css"><!--[if IE]>
    <style type="text/css">
    #content,
    #main,
    #inner-wrap,
    #wrap {
    zoom:1;
    }
    </style>
    <![endif]-->
    </head>
    
    <body>
    <div id="container">
    
    <div id="header">
    </div>
    
    
    
    <!--End Of Header-->
    
    
    <ul id="nav">
    <li><a href="index.htm">Stylish Knockouts</a></li>
    <li><a href="PRR.htm">PRR Home</a></li>
    <li><a href="Episodes.htm">Episodes</a></li>
    </ul>
    
    <div id="content">
    <h3>Synopsis</h3>
    <p>The episode that begins it all! College student and treasure enthusiast Oliver Scott is a teen living in the historic town of Angel Grove. When he goes into the woods hoping to prove that a treasure map is fake, he finds something he'd never expect and unleashes a new threat to the town. Now Oliver must assume the role as a Power Ranger to destroy what he helped create. </p>
    <p><a href="DawnOfDestiny.txt">Dawn Of Destiny</a></p>
    
    </div>
    
    
    
    
    <div id="footer">
    <p>&copy www.stylishknockouts.com 2009</p>
      </div>
    </div>
    <!-- Start of StatCounter Code -->
    <script type="text/javascript">
    var sc_project=4747880;
    var sc_invisible=1;
    var sc_partition=54;
    var sc_click_stat=1;
    var sc_security="e58ce786";
    </script>
    
    <script type="text/javascript"
    src="http://www.statcounter.com/counter/counter.js"></script><noscript><div
    class="statcounter"><a title="drupal counter"
    href="http://www.statcounter.com/drupal/"
    target="_blank"><img class="statcounter"
    src="http://c.statcounter.com/4747880/0/e58ce786/1/"
    alt="drupal counter" ></a></div></noscript>
    <!-- End of StatCounter Code -->
    </body>
    </html>
    Code:
    *{
      margin: 0;
      padding: 0;
    }
    
    body{
      font-size: 62.5%;
      font-family: Helvetica, sans-serif;
      background:#c0c0c0;
    
    }
    
    #container {
    	width: 1024px;
    	margin: 0 auto;
    
    #header{
      background:url(Images2/DawnOfDestiny.jpg) no-repeat;
      width:1024px;
      height:224px;
    }
    
    #nav{
      width: 1024px;
      height: 73px;
      background:url(Images2/DawnNav.jpg) no-repeat;
      text-align: center;
    }
    
    #content{
      width: 1024px;
      height: 701px;
      background:url(Images2/DawnContent.jpg) no-repeat;
      text-align: center;
    }
    
    #footer{
      width: 1024px;
      height: 22px;
      background: black;
    }
    
    h3{
      margin: 0 auto;
      background: white;
      font-family: Arial Rounded MT Bold;
    }
    
    #content a{
      color: blue;
      text-decoration: none;
    
    }
    
    li {
    	list-style-type: none;
    	display: inline;
    	padding: 0 32px;
    	text-decoration: none;
    	font: 18px/80px Helvetica;
    	color: white
    
    }
    
    p{
      margin: 0 auto;
      color: #fff;
    }

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,955
    Thanks
    9
    Thanked 726 Times in 720 Posts
    You're missing a closing quote on #container:

    Code:
    #container {
    	width: 1024px;
    	margin: 0 auto


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •