My layout's going haywire!

Started by Innocence December 16th, 2005 4:03 AM
  • 683 views
  • 11 replies

Innocence

PC Lurker: I'm watching you...

Age 28
Male
Queensland, Australia. What are you, a stalker?
Seen August 31st, 2016
Posted September 25th, 2011
1,041 posts
18.8 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

I cringe at things I've said here in the past years.

usami

biohazard

Age 32
Male
Iowa
Seen October 5th, 2021
Posted May 1st, 2014
7,305 posts
19.5 Years
Well, you're missing an equal sign.
So this:
<div id="aroundcontent" class"aroundcontent">
Should be this:
<div id="aroundcontent" class="aroundcontent">
That should fix it. :x

aRedMoon

Wait for me outside the lines

Age 34
Male
Minnesota
Seen April 23rd, 2018
Posted September 10th, 2013
11,126 posts
19.2 Years
A layout is the format that a website is in, basically.
facebook \\ twitter \\ blog a.k.a life // tumblr // google+

june 10, 2003 = registered at old pc
march 24, 2004 = registered at new pc
june, 2004 = modded ;;; august, 2004 = quit/fired (point of debate)
december, 2004 = banned ;;; december 2, 2005 = unbanned
june 10, 2008 = omg... five years!
june 10, 2012 = countdown to nine years on pc...

Dragonfree

Teh Spwriter. :3

Age 33
Female
Iceland
Seen February 9th, 2020
Posted November 28th, 2012
1,290 posts
19.1 Years
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.
~Butterfree/Dragonfree/antialiasis of The Cave of Dragonflies

Still not going to sprite for your fangame. Sorry, but I don't really sprite or give out permission for people to use my fake Pokémon anymore.

Innocence

PC Lurker: I'm watching you...

Age 28
Male
Queensland, Australia. What are you, a stalker?
Seen August 31st, 2016
Posted September 25th, 2011
1,041 posts
18.8 Years
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.

I cringe at things I've said here in the past years.

aRedMoon

Wait for me outside the lines

Age 34
Male
Minnesota
Seen April 23rd, 2018
Posted September 10th, 2013
11,126 posts
19.2 Years
Can you post the code? That'd be useful.
facebook \\ twitter \\ blog a.k.a life // tumblr // google+

june 10, 2003 = registered at old pc
march 24, 2004 = registered at new pc
june, 2004 = modded ;;; august, 2004 = quit/fired (point of debate)
december, 2004 = banned ;;; december 2, 2005 = unbanned
june 10, 2008 = omg... five years!
june 10, 2012 = countdown to nine years on pc...

Morkula

Get in the Game

Age 34
Male
Virginia
Seen February 6th, 2020
Posted March 4th, 2018
7,294 posts
19.3 Years
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. ^^

Innocence

PC Lurker: I'm watching you...

Age 28
Male
Queensland, Australia. What are you, a stalker?
Seen August 31st, 2016
Posted September 25th, 2011
1,041 posts
18.8 Years
here it is.
<!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>

I cringe at things I've said here in the past years.

aRedMoon

Wait for me outside the lines

Age 34
Male
Minnesota
Seen April 23rd, 2018
Posted September 10th, 2013
11,126 posts
19.2 Years
No idea why it isn't showing anything for you I guess.

Though for your links, you need a http:// in them~
facebook \\ twitter \\ blog a.k.a life // tumblr // google+

june 10, 2003 = registered at old pc
march 24, 2004 = registered at new pc
june, 2004 = modded ;;; august, 2004 = quit/fired (point of debate)
december, 2004 = banned ;;; december 2, 2005 = unbanned
june 10, 2008 = omg... five years!
june 10, 2012 = countdown to nine years on pc...