applying a CSS within a table column

G

Gregory Hallam

This is for FrontPage 2002 ....

I am editing an existing web site and trying to use an external CSS file to
format one column of a two column table on each of over 200 pages. I am
selecting Paragraph and left indent 30 but when I apply the CC file to, say,
one page it makes absolutely no difference to the formatting whatsover. The
HTML shows the linked CSS file. What could I be doing wrong please?
 
S

Stefan B Rusynko

Unless you have all content in all cells inside of <p> tags (or a <p> tags w/ a class assigned), the style won't cascade into a
table cell
- you could try applying the style to the <td> tag or a <td> tag w/ a class assigned

--




| This is for FrontPage 2002 ....
|
| I am editing an existing web site and trying to use an external CSS file to
| format one column of a two column table on each of over 200 pages. I am
| selecting Paragraph and left indent 30 but when I apply the CC file to, say,
| one page it makes absolutely no difference to the formatting whatsover. The
| HTML shows the linked CSS file. What could I be doing wrong please?
|
|
 
J

Jon

Hi Greg,
you'd want to assign a class to the table and then to the td, eg

..mytable{
font: 14px Verdana,arial,helvetica,sans-serif;
width:100%;
}
..myTable td{
padding: 0 0 0 30px;
}
and/or
..myTable td p{
padding: 0 0 0 30px;
}
and then apply to the table
<table class="myTable">

Jon
Microsoft MVP - FP
 

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

Top