My layout's going haywire!

Innocence

PC Lurker: I'm watching you...
  • 1,041
    Posts
    20
    Years
    Help! My layout isn't working properly! I don't know what's wrong, but the content isn't in the right place! It is supposed to go beside the navbar, but it's going above instead. Here,it's easier to show you. Click
     
    Well, you're missing an equal sign.
    So this:
    HTML:
    <div id="aroundcontent" class"aroundcontent">
    Should be this:
    HTML:
    <div id="aroundcontent" class="aroundcontent">
    That should fix it. :x
     
    A layout is the format that a website is in, basically.
     
    Basically, without a layout, everything appears just as a long page of text (maybe with some images on).

    The layout puts the text in place, makes sidebars, etc.
     
    Oh! I must be used to css >_<. Thanks.

    EDIT: Oh no! Another problem! Look at the site now! The include script won't work.
    EDIT2: Hang on, i'll try chmodding the files.
    EDIT3: Fixed, but it won't open site.txt! What you see there is a makeshift error 404.
     
    Last edited:
    Can you post the code? That'd be useful.
     
    PHP is server-side code- it's processed before the visitor sees it. So, by the time it gets to us, the PHP script looks like HTML in the source code. That's why you need to post the code. ^^
     
    here it is.
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>The Cokemart - Come her for our superb content on Age Of Empires and Pokemon!(Not yet)</title>
    <link href="style.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="sitenav" class="sitenav">
    <b>Main Site</b><br />
    <a href="cokemart.freeownhost.com/site.php?id=site">Main</a>
    </div>
    <!-- Content -->
    <div id="aroundcontent" class="aroundcontent">
    <div id="content" class="content">
    <?php
       if (!$id) {
          $id = "main";
          $include = $id . ".txt";
       }
       else {
       $include = $id . ".html";
       }
       if (is_file($include) == "1") {
               include $include;
       }
       else {
       include "404.txt";
       }
       ?>     
    </div>
    </div>
    </body>
    </html>
     
    No idea why it isn't showing anything for you I guess.

    Though for your links, you need a https:// in them~
     
    Back
    Top