Jump to content


Photo

Tempory Banner Image


  • Please log in to reply
2 replies to this topic

#1 Brain_Dead_Monkey

Brain_Dead_Monkey
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 15 September 2006 - 05:18 AM

I want to place an image I have on my website temporarily. I want it to display on the very bottom of every page. I think that I have to make a banner.php file and add it as an  include to my global? That way I can just edit the global file to remove it? Does this sound right? But how do I define the position so it displays on the very bottom of the page?

#2 btherl

btherl
  • Staff Alumni
  • Advanced Member
  • 3,893 posts
  • LocationAustralia

Posted 15 September 2006 - 06:21 AM

Do you have a file global.php which is included at the top of all your php scripts?

If so, I think the easiest solution is to have another file footer.php, which is included at the bottom of all your php scripts.  Defining the position to display is not straightforward (perhaps it can be done with CSS, but not with standard HTML)

#3 Brain_Dead_Monkey

Brain_Dead_Monkey
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 15 September 2006 - 01:34 PM

Yes global.php is included at the top of all my scripts. 

global.php also has several includes: header.php, cron.php, etc.

I've created the file footer.php and include it in the global.php.

In my style.css file I have added:

{
    body{height=640px; width=480px;}
      #logoBar  {position:fixed;width:99.15%;height:15%;top:0;right:0;bottom:auto;left:0;border:solid;}
      #leftSide {position:fixed;width:10em;height:auto;top:15%;right:auto;bottom:50px;left:0;border:solid}
      #main    {position:fixed;width:auto;height:auto;top:15%;right:0;bottom:50px;left:10em;border:solid}
      #footer  {position:fixed;width:99.15%;height:50px;top:auto;right:0;bottom:0;left:0;border:solid;}


The images displays at the top of the page right in the middle.
Anybody?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users