Formating Editable Region in DWT

M

Maciej

I use Dynamic Web Template containing a layout table, in which a few cells
are set as Editable Regions formated in the DWT with a certain font style.
It so happened that several pages that were attached to this DWT used it's
own formating for the editable regions, which overrode the original template
formating. Is there a way of globaly 'removing' such formating from
individual pages and somehow use DWT to bring them all in line to DWT
original formating? Cheers.
 
A

Andrew Murray

I suggest using a style sheet on the DWT page, which will be imported then
to each page when you attach the template.

eg, something like below, which I use as a basic style sheet which sets page
margins, font sizes and link colours/effects (simple underline).

<style>
<!--
body { font-size: 10pt; color: #000000; font-family:arial;
text-decoration: none; margin-left:0px; margin-top:0px; margin-right:0px;}


a:link { font-size: 10pt; color: #0078AA; font-family:arial;
font-weight:normal; text-decoration: none }
a:hover { font-size: 10pt; color: #FF0000; font-family:arial;
font-weight:normal; text-decoration: underline }
a:active { font-size: 10pt; color: #CC3300; font-family:arial;
font-weight:normal; text-decoration: none }
a:visited { font-size: 10pt; color: #808080; font-family:arial;
font-weight:normal; text-decoration: none }


-->
</style>

then you can add to that using the link colours/effects as well like
a:hover, a: active: a:visited: a:link
etc.

The above will then apply arial font 10pt to all your text.
 
M

Maciej

That's great, thank you. I'm trying to redo the website using CSS. What
perplexes me though, is what happens in editable regions in pages attached to
DWT if they have been formated e.g. with inline style or font tag.

In other workds I was hoping to override the silly formating in editable
regions with proper styles in DWT as you suggested, but it looks like the
style applied to text in editable regions takes precedence and I don't know
how to get rid of them globally. Many thanks.
 
T

Tina Clarke

Maciej said:
I use Dynamic Web Template containing a layout table, in which a few cells
are set as Editable Regions formated in the DWT with a certain font style.
It so happened that several pages that were attached to this DWT used it's
own formating for the editable regions, which overrode the original template
formating. Is there a way of globaly 'removing' such formating from
individual pages and somehow use DWT to bring them all in line to DWT
original formating? Cheers.

There is a FrontPage addon that will remove formatting globally however you
have to buy I think there is a trial version.

http://frontpagepoweredit.com 2.0

Styles within content (ie inline styles) overide an embedded style sheet and
that overwrites an external one.

For more info on CSS see two part article
http://msmvps.com/frontpage/articles/13615.aspx
http://msmvps.com/frontpage/articles/13683.aspx

hth Tina

Tip now out is: Opening CSS files within FrontPage
http://frontpage-tips.com/ - FrontPage Tips
Frontpage Tips Ebook, Vol I. AVAILABLE NOW!
 

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


Top