How do I dynamically include a stylesheet in design mode?

J

Jacob

It's a common practice to use a template file that acts
as a header and footer file for any dynamically loaded
HTML files.

-- TEMPLATE FILE START --

HTML
STYLESHEETS
BODY
-------

-- INCLUDE HTML FILE --

-------
/BODY
/HTML

-- TEMPLATE FILE END --


When editing the INCLUDE HTML FILE in DESIGN MODE using
FrontPage, it is very hard to imagine the end result
because there are no stylesheets present.

Is there a really cool way to include a template file
dynamically (maybe just a header file)? The template HTML
file should not be present in CODE VIEW and most
important of all the template code should not be included
when the HTML file is saved.

Thx.

Jacob
 
S

Steve Easton

If I read your question correctly,
you want the css to be applied to your
include page while you are editing it, or
previewing it on it's own.
So, just add the source of the style sheet
to the Head section of the include page like this:
<head>
<link rel="stylesheet" type="text/css" href="myfile.css">
</head>

It will be present when editing the include, but will "not"
be included in the other page because includes only "include"
the content between the <body></body> tags.

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top