PC Review


Reply
Thread Tools Rate Thread

CSS formatting

 
 
Dick
Guest
Posts: n/a
 
      26th Jun 2004
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!
 
Reply With Quote
 
 
 
 
chris leeds
Guest
Posts: n/a
 
      26th Jun 2004
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/
--


"Dick" <(E-Mail Removed)> wrote in message
news:21dba01c45b9b$89deb930$(E-Mail Removed)...
> 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!



 
Reply With Quote
 
Guest
Posts: n/a
 
      26th Jun 2004
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/
>--
>
>
>"Dick" <(E-Mail Removed)> wrote in message
>news:21dba01c45b9b$89deb930$(E-Mail Removed)...
>> 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!

>
>
>.
>

 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      27th Jun 2004
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>


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


<(E-Mail Removed)> wrote in message news:21cfe01c45ba9$6a37f7f0$(E-Mail Removed)...
| 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/
| >--
| >
| >
| >"Dick" <(E-Mail Removed)> wrote in message
| >news:21dba01c45b9b$89deb930$(E-Mail Removed)...
| >> 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!
| >
| >
| >.
| >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting of text effecting formatting of background =?Utf-8?B?SEFI?= Microsoft Access Reports 6 25th Mar 2008 06:23 PM
Find formatting in text in cell, insert tags around formatting. CarlC Microsoft Excel Programming 2 27th Feb 2008 09:26 PM
expanding custom formatting without removing existing cell formatting? Keith Microsoft Excel Worksheet Functions 3 27th Dec 2006 01:54 PM
Decimal Formatting in Windows English vs European Formatting Drummer361 Microsoft Excel Programming 3 7th Aug 2006 02:48 PM
Convert soft (style) formatting to hard formatting =?Utf-8?B?SmF5IFRoYXJw?= Microsoft Word Document Management 1 7th Jul 2004 12:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:05 AM.