HELP!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Rita
Forum Newbie
Posts: 4
Joined: Wed Jan 15, 2003 8:33 am
Location: Norway

HELP!

Post by Rita »

Hey! My problem is that the pages on my site won't be in my table which I created in header.php, so the text goes all over the page. How can I make ALL the pages open in a table? please help me.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Hi, could we see the code you are using to set up your template.

Mac
Rita
Forum Newbie
Posts: 4
Joined: Wed Jan 15, 2003 8:33 am
Location: Norway

re:

Post by Rita »

template? lol

erm.... the header looks like this:

Code: Select all

<p><span style="position: absolute; left: 1; top: -2"><img border="0" src="benadams.jpg" width="800" height="600"></span></p>
<div align="left">
  <table border="1" width="338" height="226">
    <tr>
      <td width="338" height="226">
        <div style="position: absolute; top: 367; left: 11; width: 328; height: 261">
          &nbsp;
        </div>
      </td>
    </tr>
  </table>
</div>
Yep.

and the footer.php is just the basics lol.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

The table is closed before anything is printed. Why should the page-content be in there? ;)
Maybe if you split the code into

Code: Select all

//header.php
<p><span style="position: absolute; left: 1; top: -2"><img border="0" src="benadams.jpg" width="800" height="600"></span></p>
<div align="left">
  <table border="1" width="338" height="226">
    <tr>
      <td width="338" height="226">
        <div style="position: absolute; top: 367; left: 11; width: 328; height: 261">

Code: Select all

//footer.php
        </div>
      </td>
    </tr>
  </table>
</div>
Rita
Forum Newbie
Posts: 4
Joined: Wed Jan 15, 2003 8:33 am
Location: Norway

wow..

Post by Rita »

YOU ROCK! it's all working now :lol: thanks thanks thanks thanks!! :D
Post Reply