Jump to content

calling another page?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
hayschooler

hayschooler

    Learning Programmer

  • Members
  • PipPipPip
  • 31 posts
How do you call a page from another page? If I have a style sheet called styles.css and I want to include it in document.inc how do you set it up? I'm not sure what all I need to link them together and get the program to function.

Here is what I have:

public function DisplayStyles()
  { 
   include ("styles.css");
  }

and style sheet looks like this:

<style>
    #content{
 position:absolute
 top:220px;
 left:50%;
 margin-left:-320px;
 width:600px;
 }
    h1 {
     color:white; font-size:24pt; text-align:center; 
        font-family:arial,sans-serif
    }
    .menu {
     color:white; font-size:12pt; text-align:center; 
        font-family:arial,sans-serif; font-weight:bold
    }
    td { 
     background:black
    }
    p {
     color:black; font-size:12pt; text-align:justify; 
        font-family:arial,sans-serif
    }
    p.foot {
     color:white; font-size:9pt; text-align:center; 
        font-family:arial,sans-serif; font-weight:bold
    }
    a:link,a:visited,a:active {
     color:white
    }
</style>


#2
zeroradius

zeroradius

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,406 posts
<link type="text/css" rel="stylesheet" href="styles.css" />

Edited by Jaan, 22 March 2010 - 03:05 AM.
Please use code tags when you are posting your codes!

Posted Image

#3
hayschooler

hayschooler

    Learning Programmer

  • Members
  • PipPipPip
  • 31 posts
Thanks for your help, I think I might have it.

Edited by hayschooler, 22 March 2010 - 09:17 AM.