Within HTML01.htm How can I put HTML02 page sharing HTML01 stylesheet?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mutkey

    Within HTML01.htm How can I put HTML02 page sharing HTML01 stylesheet?

    Hi;

    I have 2 sides of my website, which uses 2 different stylesheets.The y
    have in common a feedback (HTML02) page.

    Currently I have duplicated the feedback pages in both sides of the
    webpage so they show the correct stylesheet for that area. But this
    involves double updating everytime the feedback is changed.

    How could I have HTML01 file pointing to the feedback (HTML02) page,
    and using the stylesheet in HTML01?. I would also have another HTML03
    file pointing to the feedback (HTML02) page, and using the stylesheet
    in HTML03.

    I've tried <iframe> but no stylesheet crossover allowed there.

    Any suggestions?

    Bruno
  • Eric Bohlman

    #2
    Re: Within HTML01.htm How can I put HTML02 page sharing HTML01 stylesheet?

    mutkey@hotmail. com (Mutkey) wrote in
    news:b07a5a6a.0 402091607.47673 01a@posting.goo gle.com:
    [color=blue]
    > I have 2 sides of my website, which uses 2 different stylesheets.The y
    > have in common a feedback (HTML02) page.
    >
    > Currently I have duplicated the feedback pages in both sides of the
    > webpage so they show the correct stylesheet for that area. But this
    > involves double updating everytime the feedback is changed.
    >
    > How could I have HTML01 file pointing to the feedback (HTML02) page,
    > and using the stylesheet in HTML01?. I would also have another HTML03
    > file pointing to the feedback (HTML02) page, and using the stylesheet
    > in HTML03.[/color]

    If you have server-side scripting (e.g. PHP) available, you could simply
    pass a parameter to the feedback page indicating which stylesheet it should
    use, and have the server-side script build the <link> for the stylesheet.

    Comment

    • Lee K. Seitz

      #3
      Re: Within HTML01.htm How can I put HTML02 page sharing HTML01 stylesheet?

      In article <b07a5a6a.04020 91607.4767301a@ posting.google. com>,
      Mutkey <mutkey@hotmail .com> wrote:[color=blue]
      >
      >I have 2 sides of my website, which uses 2 different stylesheets.The y
      >have in common a feedback (HTML02) page.[/color]
      [color=blue]
      >How could I have HTML01 file pointing to the feedback (HTML02) page,
      >and using the stylesheet in HTML01?. I would also have another HTML03
      >file pointing to the feedback (HTML02) page, and using the stylesheet
      >in HTML03.[/color]
      [color=blue]
      >Any suggestions?[/color]

      If your server supports server-side includes, you could create two
      container pages that just link to different stylesheets. Then put the
      content in the included page.

      For example:

      HTML02a:
      <!DOCTYPE html PUBLIC whatever>
      <html>
      <head>
      <title>HTML02 a</title>
      <link rel="stylesheet " href="style1.cs s" type="text/css" media="all">
      </head>
      <body>
      <!--#include file="feedback. html" -->
      </body>
      </html>

      HTML02b:
      <!DOCTYPE html PUBLIC whatever>
      <html>
      <head>
      <title>HTML02 b</title>
      <link rel="stylesheet " href="style2.cs s" type="text/css" media="all">
      </head>
      <body>
      <!--#include file="feedback. html" -->
      </body>
      </html>

      feedback.html:
      <h1>Feedback</h1>
      <p>Blah blah blah blah.</p>
      ..
      ..
      ..

      Server side inclues are your friends for HTML repeated across pages,
      just as stylesheets are your friends for style repeated across pages.
      You can find further info at:




      Note that your sysadmin may have server side includes turned off for
      security or other reasons. Note also that you may have to give your
      HTML page a special extension, like .shtml, in order for the include
      to work.

      --
      lkseitz (Lee K. Seitz) .at. hiwaay @dot@ net
      Southern spelling lesson: "y'all", NOT "ya'll".

      Comment

      • mutkey

        #4
        Re: Within HTML01.htm How can I put HTML02 page sharing HTML01 stylesheet?


        Just a great thank you to all who replied.

        I will be looking at both options PHP and Server Side Includes.

        I got no idea how to go about it, but I will give it a go by clickin
        on the recomended links.

        Thanks!!

        Brun

        mutke
        -----------------------------------------------------------------------
        Posted via http://www.forum4designers.co
        -----------------------------------------------------------------------
        View this thread: http://www.forum4designers.com/message43391.htm

        Comment

        Working...