DWT problem with underlining in include page.

L

Larry

http://test.ipick4u.com/
can be seen at link above

I am creating a DWT. when including the bottom.htm
it adds underlined hyper links which are not underlined in the bottom.htm
file.
It only adds the underlines when it is added as an include file. It displays
perfectly up until that time.
The top.htm displays without the underlining, as it should.
any ideas?
 
J

Jim Buyens

Right. An Include Page component doesn't include anything
from the <head> section of the included page, and that
includes style sheets and style sheet links.

You need to put the style specifications you want in the
<head> section of the DWT. This will propagate them to the
pages that attach the template, and thus to the included
content.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
R

Ronx

The links at the top have text decoration removed, the links at the bottom
don't.
At the top (with a lot of stuff removed) you have:

<span style="text-decoration: none;"><a href="bars"><span
style="text-decoration: none;">Bars</span></a></span>

At the bottom:

<span style="text-decoration: none;"><a href="bars">Bars</a></span>
The outer <span>s do not affect the text-decoration attribute of the link
text (which defaults to text-decoration: underline), whereas the inner spans
do - these inner spans are missing on the bottom set of links.

A better way is to use:
<a href="Bars" style="text-decoration: none">Bars</a>
which does away with both inner and outer spans.
An even better way is to use a style sheet and classes, which will make the
whole page smaller and easier to see what is going on.

I'll leave the style attributes I have removed for you to put back in.

Ron
 
M

Mark Fitzpatrick

Looking at the code, the problem is the style that tells the bottom links
how not to appear underlined is in the wrong spot. The <span> elements that
set the text-decoration to none are occuring outside the anchor elements
<a>. This is incorrect. They need to occur inside the <a>, otherwise the <a>
over-rides the settings of the span's text-decoration. Up in the top though
the span tags are correctly inserted inside the anchor tags.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
L

Larry

Thanks to you all and Ron I can definitely see the value of dwt verses the
mess I had.
Thanks for your suggestions!
Larry
 
L

Larry

Thanks Ron,
Check this out I was able to do 200 pages in about 2 minutes.
Took me longer to upload them :)
Attach a Dynamic Web Template

1.. Open the Web page you want to attach a Dynamic Web Template to.
To attach the Dynamic Web Template to more than one page, select the pages
you want.

How?

a.. In the Folder List, hold down CTRL and click each page you want.
If the Folder List is hidden, click Folder List on the View menu.


2.. On the Format menu, point to Dynamic Web Template, and then click
Attach Dynamic Web Template.
3.. Locate and click the Dynamic Web Template you want to attach, and then
click Open.
If the body of a selected Web page contains content, the Choose Editable
Regions for Content dialog box appears. The dialog box displays the default
settings for mapping content from the body of the Web page to editable
regions specified by the Dynamic Web Template. The Old column lists content
in the body of the Web page. The New column lists editable regions specified
by the template.

In the Choose Editable Regions for Content dialog box, do one of the
following:

a.. To move all of the content in the body of the Web page to the
default editable region, click OK. If the default editable region contains
content, that content is replaced with the content on the Web page.
b.. To move all of the content in the body of the Web page to a specific
editable region, click (Body), and then click Modify. In the New Region
list, click the editable region you want to move the content to. If you
click (none), the content is removed from the Web page.
c.. To maintain all of the content and structure of the Web page, click
Skip Current Page. The template is not attached to the page.
 

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

Similar Threads

New DWT problem with underlining in include page. 1
Underline Hover Link problem. 5
Underline COLOR 5
Include page and text decoration 1
dwt after crash 6
DWT with CSS 2
DWT and Includes 2
DWT problem 6

Top