applying style to a table

  • Thread starter Thread starter J Harrigan
  • Start date Start date
J

J Harrigan

First, I'm very new to FrontPage (and web design in general) and just trying
to understand everything that my designer did (or at least some of it),
particularly in the area of styles.

He created 'site.css' that contains styles, and the header for every page
references that file, so the new pages I'm creating show the font I want
when I preview them in a browser.

Except for one page. I'm adding text to a table, and the text stays in the
default font (times new roman). All text outside of the table is correct
when viewed in a browser.

So I would guess that there is a style in site.css that formats text outside
of a table, since it's appearing correctly. Some of the pages the designer
created have text in tables, and it's formatted correctly. There is a
'.Tablecontent' entry in the site.css, so I'm guessing that's what he's
using to set the format, but how do I apply that to my new table?

Any thoughts welcome...many thanks...Jan
 
It appears that that author has defined a class named
..Tablecontent

So, in your new table, in html view add the following:
class="Tablecontent" so it looks like this:

<table class="Tablecontent" width=.... and so on.

Notice the . is not needed when assigning the class.

You can also assign the class by right clicking and selecting
table properties and then style. but i find it easier to it in html view.


hth
 
Thanks to you both. Part of why I'm so confused: when I right click, go to
table properties, click Style...there's NOTHING in the class dropdown. Is
this because they didn't use the frontpage interface to create the style?

Second question...re adding class=tablecontent to the table: why in the
world don't I see this on the existing tables? Any ideas?
 
Frontpage will not identify a style if it exists in an enternal stylesheet
(eg. site.css)
It's a remarkably bug like feature.

Also, classes are inherited, so the tables that you don't see the
Tablecontent defined as a class for, it is possible that there is a class
set higher (or a table that encapsulates other tables), or there is a class
assigned called table or body.

Through inheritance the table class will apply automatically to every table
even if you don't specify a class for that that specific table.

It's a bit like shooting in the dark here.
If you have a URL we can look and tell you exactly what is going on.

Peter.
 
Sure, Peter, it's www.hotelaficionado.com, but the new page with the table
has not been published yet (if that makes any difference). Thanks for the
scoop on 'external stylesheet'. NOW it's starting to make a little sense,
and although I don't understand classes, I do have a brand new book called
FrontPage Inside Out that I'm hoping will shed some light on this and a lot
of other topics. Thanks again. Jan
 
Back
Top