CSS formatting

D

Dick

I have the following in my css style sheet:
p, td, a { font-family: Verdana; font-size: 10pt }

But when I enter text in a table cell, the first part is
not formatted correctly. It seems to ignore the "td"
portion of the style declaration. However, if I enclose the
text within <p> </p> tags it displays properly.

By default, FrontPage doesn't initiate text in a table cell
with a <p> tag. Is there a way to write the CSS style to
fix this problem? Or os there a way to make FrontPage
insert a <p> tag at the beginning of all table cells?

Thanks!
 
C

chris leeds

perhaps the table has an ID or style applied to it that's preventing the td
spec on your style sheet from coming through.

HTH
 
G

Guest

Here is the HTML:

<body>

<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td>test font<p>paragraph 2</td>
</tr>
<tr>
<td>test<p>par 3</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
 
S

Stefan B Rusynko

Works for me
Try pasting below code in a new page in html/code view
the <th> and <blockquote> sections should not be affected by the style

<!Doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<title>CSS Test Page</title>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta http-equiv="Content-Language" content="en-us">
<meta name="language" content="en">
<meta http-equiv="content-style-type" content="text/css">
<style type="text/css">p, td, a { font-family: Verdana; font-size: 10pt; } </style>
</head>
<body><table border="0" cellpadding="3" cellspacing="0"> <tr>
<td align="left">test font<p>paragraph 2</p></td>
</tr><tr>
<td align="left">test font<p>paragraph 3</p></td>
</tr><tr>
<th align="left">test 3 - normal size</th>
</tr><tr>
<th align="left">test 4 - normal size</th>
</tr></table>
<p>test font paragraph 4</p>
<blockquote>Normal size text not in a paragraph or table</blockquote>
</body></html>





| Here is the HTML:
|
| <body>
|
| <table border="0" cellpadding="3" cellspacing="0">
| <tr>
| <td>test font<p>paragraph 2</td>
| </tr>
| <tr>
| <td>test<p>par 3</td>
| </tr>
| <tr>
| <td>&nbsp;</td>
| </tr>
| <tr>
| <td>&nbsp;</td>
| </tr>
| </table>
|
| </body>
|
| >-----Original Message-----
| >perhaps the table has an ID or style applied to it that's
| preventing the td
| >spec on your style sheet from coming through.
| >
| >HTH
| >
| >--
| >The email address on this posting is a "black hole". I
| got tired of all the
| >spam.
| >Please feel free to contact me here:
| >http://nedp.net/contact/
| >--
| >
| >
| >| >> I have the following in my css style sheet:
| >> p, td, a { font-family: Verdana; font-size: 10pt }
| >>
| >> But when I enter text in a table cell, the first part is
| >> not formatted correctly. It seems to ignore the "td"
| >> portion of the style declaration. However, if I enclose the
| >> text within <p> </p> tags it displays properly.
| >>
| >> By default, FrontPage doesn't initiate text in a table cell
| >> with a <p> tag. Is there a way to write the CSS style to
| >> fix this problem? Or os there a way to make FrontPage
| >> insert a <p> tag at the beginning of all table cells?
| >>
| >> Thanks!
| >
| >
| >.
| >
 

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