473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

embedded css and includes

jmc
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

Dec 20 '07 #1
1 2555
jmc
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?

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.
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
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
Dec 27 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Alexander May | last post by:
Hi, I love Python! I've been using it for a couple of years now and have found it to be a highly productive language. I evangelize it to my developer friends and am probably responsible for...
0
by: newbie | last post by:
Hi all, I got a problem using the embedded python. I'll be appreciated if some one can show me the way. What i want is, 1.build a dll(test.dll/test.lib) which uses the embedded python, for...
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
1
by: Zeroeffect | last post by:
Hello! I have a database with alot of embedded images. The reason for having the images embedded is security. My problem is that it works fine on my computer, but not on my clients computer....
1
by: Chris Stephens | last post by:
The Spring 2004 copy of our Embedded Development Tools Newsletter is now available for downloading from our web site It includes information about...... An affordable USB protocol Analyser ...
2
by: Chris Stephens | last post by:
COMSOL is celebrating its 25th birthday --- not many companies can claim that in our industry. So we are starting what we hope will be an exciting year with a 10% discount on selected products...
1
by: Melbrouff | last post by:
Hi, (.NET 2.0) I want to embed the XML schema files into my DLL. However, this schema is "split" in several files, i.e., they use xs:include. Note that the include is relative and contains...
2
by: Owen.Leibman | last post by:
Here is a complete web page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <html> <head> <title>Javascript Embed and onunload</title> <script type="text/javascript"> function useplayer() {...
4
by: Chris8Boyd | last post by:
I am embedding Python in a MSVC++ (2005) application. The application creates some environment and then launches a Python script that will call some functions exported from the MSVC++ application....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.