The short version: Is there a way to get embedded styles to work on
files that are displayed in a page using the shtml Include method?
My work intranet site uses Front Page dynamic templates. Please no
flames; I'm not a FP fan either but that's the only tool I'm given, and
the templates coupled with css made it easy for me (and others) to
update the site "wrapper" and menu quickly when adding pages, as the
website is close to the bottom of my job-jar. I know html, xhtml and
css, but do no yet know any dynamic coding such as javascript, php or
asp. I am trying to keep the site simple because the next webmaster may
know even less.
Anyway. The kind folks who run the web server broke templates when they
upgraded the server, and have no intention of fixing it.
The site has a pure-css navigation system I designed myself, taking
pages from various tutorials on the web. It uses both external and
embedded styles... In short, the entire menu was/is in the template,
"collapsed" through the use of display:none in the external CSS file.
The menu is built so that each line item has a unique ID, which
identifies each section and then the page # in the section. (like, 2,
21, 22, etc)
Then, I use embedded css on each page to "open up" the section the page
belongs to (display:block). This css also creates the "you are here"
visuals for the menu link.
For example, the default collapsed menu without the embedded CSS might
include:
About Us
Organization
History
Something else
Help
Some Help
More Help
Helpless
Some other Link
Linky
But would actually display as:
About Us
Help
Some Other Link
Since we're visiting the Help page, when we get there, that menu would
expand to look like this:
About Us
Help
Some Help
More Help
Helpless
Some Other Link
Then, when you go to Helpless:
About Us
Help
Some Help
More Help
> Helpless
Some Other Link
Although I'm sure it's a terribly unwieldy methodology, it works for me
and I've received kudos from customers for the user-friendly, easy
navigation. It is also keyboard-friendly. It looks like I've created
menus for every page, when in reality there's only one.
Ok, so... to get off of the templates, I'm trying to use includes. The
menu, of course, becomes one of those includes. And therein is the rub:
the embedded css on the page does not work on the Included navigation.
So: Is there a way to get that to work?
If not:
I need suggestions on how I can recreate the navigation system I have
now, using pure css and x/html.
I may be able to use the whatever:hover method; I'll play with that
tomorrow. But, how do I create the "you are here" visuals to the
current link, without using dynamic code, or the embedded CSS?
Oh, and it has to be accessible too. Which is why I'm not using canned
Javascript menus. And, probably why I didn't use a hover method when I
created the navigation system in the first place.
Anyway, I hope this makes some sort of sense.
jmc
Ben Bacarisse - 20 Dec 2007 12:29 GMT
> The short version: Is there a way to get embedded styles to work on
> files that are displayed in a page using the shtml Include method?
There is no reason for it not to work! A URL would help. It is very
likely that the problem is only tangentially related to SSI. If I had
to guess (and I do -- did I say a URL would help?) I'd say you've
altered the order in which the document gets presented to the browser
when you switched from templates to SSI. The answer will be in the
details somewhere.

Signature
Ben.
jmc - 21 Dec 2007 06:51 GMT
Suddenly, without warning, Ben Bacarisse exclaimed (12/20/2007 9:59 PM):
>> The short version: Is there a way to get embedded styles to work on
>> files that are displayed in a page using the shtml Include method?
[quoted text clipped - 5 lines]
> when you switched from templates to SSI. The answer will be in the
> details somewhere.
Wish I could do a url. I'd have to rebuild the whole thing from scratch
though, because my website is on a limited intranet, with no access to
the internet.
I'm not sure I can do anything about the order: the styles of course
are in the <head>, and the include is in the body. Unless you are
talking about something else being out-of-order.
jmc
jmc - 27 Dec 2007 12:12 GMT
Suddenly, without warning, jmc exclaimed (12/20/2007 7:17 PM):
> The short version: Is there a way to get embedded styles to work on
> files that are displayed in a page using the shtml Include method?
[quoted text clipped - 10 lines]
> Anyway. The kind folks who run the web server broke templates when they
> upgraded the server, and have no intention of fixing it.
> Ok, so... to get off of the templates, I'm trying to use includes. The
> menu, of course, becomes one of those includes. And therein is the rub:
[quoted text clipped - 18 lines]
>
> jmc
Solved. I'd added a doctype (transitional xhtml, not ready to go strict
yet) and that "broke" the page. There was more wrong than what I
noticed at first. So today's adventure was fixing my code so it'd work
with the correct doctype. Now the css works on the included files, and
properly. Woohoo.
So, managed to hit myself with my own cluebat. Hey, whatever works! :)
jmc