BobLaGatta
Posts: 3
|
| Posted: 09/01/2005, 6:48 PM |
|
I have a grid with a memo field that is set to display at HTML. The database field has the formatting and looks fine in any HTML editor. I am not sure why the characters are not showing up as a formatted display.
The Formatting in HTML is as follows:
<p><font size="7"><strong><em> The Ezekiel Project</em></strong></font><br/>
<a href="http://www.projectezekiel.net">www.projectezekiel.net</a></p>
The text and size are normal.
Any thoughts about the reason it is not displaying as HTML formatted.
|
 |
 |
DonB
|
| Posted: 09/01/2005, 8:08 PM |
|
Probably because it's being formatted by a CSS class, which overrides the
embedded HTML directives. Try removing 'class="something"' directives
Or, better still, define a class to implement the formatting you want.
1. Add the style to the <HEAD> of the page (or just put in in Style.css)
2. Apply the style to the text
An example:
<HEAD>
<STYLE>
p.mystyle {font-size: 18pt; font-weight: bold; font-style: italic;
padding-left: 10px;}
a.mystyle {padding-left: 200px;}
</STYLE>
<BODY>
<p class="mystyle">The Ezekiel Project<br/>
<a href="http://www.projectezekiel.net">www.projectezekiel.net</a></p>
</BODY>
I eliminated the non-breaking spaces through the use of padding. You will
surely need to fine tune the 'pt' and 'px' sizes to get them exactly like
you want.
[editorial comment: using spaces to position things is a terrible idea
because it's browser/font dependent.]
--
DonB
http://www.gotodon.com/ccbth
"BobLaGatta" <BobLaGatta@forum.codecharge> wrote in message
news:54317af5e3641e@news.codecharge.com...
> I have a grid with a memo field that is set to display at HTML. The
database
> field has the formatting and looks fine in any HTML editor. I am not sure
why
> the characters are not showing up as a formatted display.
>
> The Formatting in HTML is as follows:
> <p><font size="7"><strong><em> The Ezekiel
> Project</em></strong></font><br/>
>
&nbs
p;
> <a href="http://www.projectezekiel.net">www.projectezekiel.net</a></p>
>
> The text and size are normal.
>
> Any thoughts about the reason it is not displaying as HTML formatted.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
BobLaGatta
Posts: 3
|
| Posted: 09/04/2005, 1:02 PM |
|
That was the problem. There were some embedded HTML formats in the code. Thanks for the help.
|
 |
 |
|