Hyperlink colors and Include page

S

Sandra

Why won't the colors of the hyperlinks in my include page
show up on the pages where I have included the include
page?

I don't want to set the colors on EVERY page.
 
T

Thomas A. Rowe

How are you setting the hyperlink colors on the page to be Included?

When using FP Includes or Shared Borders, only the content the is between the <body> ..content that
will be included in other pages.. </body>

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
M

Mark Fitzpatrick

Include pages strip out the body tags (the include bot just grabs all the
content between them to avoid having more than one body in the main
document. The colors for the links are probably designated in the body tag
so they are getting skipped because of the bot. Not to worry though, you can
just try to define a style for the anchors on the included page. If FP
generates some stylesheet, you'll need to move it between the body tags to
help ensure it gets picked up in the include process.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
S

Sandra

Thank you, Mark, for replying.
"Not to worry"??? I don't have any idea how to "define a
style for the anchors on the included page." Can you
help me?
 
S

Sandra

On the include page (the one that is included on each
other page) I right click on page properties, then choose
the colors at "hyperlink", "visited hyperlink", "active
hyperlink", then click "enable rollover effects" and
choose the rollover style.
 
W

Wally S

If you format your links with a CSS style sheet and use the same style sheet
for the included page and the includer page, then you will keep the styles.

Wally S
 
T

Thomas A. Rowe

Ok, then that is why you don't not see this on your pages, because it is written to the body tag.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
S

Steve Easton

Create a class in your style section that contains the info for the hyperlinks:
example:

..myclass a:visited {
text-decoration: none;
color: teal;
}
..myclass a:active {
text-decoration: none;
color: blue;
}
..myclass a:hover {
text-decoration: underline;
color: red;
}

Then assign the class to the table or element that contains your include

<table class="myclass" or <div class="myclass"

Note that a period is used to create the class, but not to assign it to the table.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
T

Thomas A. Rowe

CSS.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
W

Wally S

Hi Sandra,

CSS makes your life a lot easier. FP Help will get you started, and then you
can do a web search for "CSS tutorial," and you'll find plenty of info.
There are also some good books on the subject. The one by Eric A. Meyer
comes highly recommended. It's not difficult at all, once you grasp the
concept. Perhaps some of the other contributors to this newsgroup can give
you some advice.

Basic concepts: A CSS style sheet is a list of styles, such as, the links
will look like this and the tables will look like that. And you can refine
it even further. I can create a class of links called "redlink" for example
if I want my links to be red. Then I can apply that class to the links in a
table or to individual links, and they will be formatted according to the
way I have set up the style in that class. I could also have another class
of links called "greenlink" and that would work the same way.

I can have classes for my tables, for my captions, and for just about
everything else. Maybe it sounds complicated, but it's not.

Wally S
 
S

Sandra

Thank you for this information! I have created a style
page with similar information. But it seems I have to
tell each page to use "myclass". I was hoping to tell
the include page to use "myclass", and then include it in
all the other pages, so that I say use "myclass" only one
time. Have I missed something?
 
S

Steve Easton

You have to assign the class to an element in the include page that is between the <body></body>
tags.
If the content you're including is in a table or div in the include page, assign the class to the
table or div.

< table class="myclass"
or
<div class="myclass"


hth
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
T

Thomas A. Rowe

No, you haven't misses anything, the style sheet must be applied/referenced on each page using the
include.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Top