By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,787 Members | 1,124 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,787 IT Pros & Developers. It's quick & easy.

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

P: n/a
Hi;

I have 2 sides of my website, which uses 2 different stylesheets.They
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
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
mu****@hotmail.com (Mutkey) wrote in
news:b0**************************@posting.google.c om:
I have 2 sides of my website, which uses 2 different stylesheets.They
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.


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.
Jul 20 '05 #2

P: n/a
In article <b0**************************@posting.google.com >,
Mutkey <mu****@hotmail.com> wrote:

I have 2 sides of my website, which uses 2 different stylesheets.They
have in common a feedback (HTML02) page. 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. Any suggestions?


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>HTML02a</title>
<link rel="stylesheet" href="style1.css" type="text/css" media="all">
</head>
<body>
<!--#include file="feedback.html" -->
</body>
</html>

HTML02b:
<!DOCTYPE html PUBLIC whatever>
<html>
<head>
<title>HTML02b</title>
<link rel="stylesheet" href="style2.css" 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:

http://hoohoo.ncsa.uiuc.edu/docs/tut...es.html#Format
http://httpd.apache.org/docs/howto/s...standardfooter

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".
Jul 20 '05 #3

P: n/a

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

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.