Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-07 13:59:51

Germaris
Member
From: Montreal, QC Canada
Registered: 2005-11-12
Posts: 44
Website

Text formatting inside an Article

When creating a new article, how do I have my text formatted in a way overriding the basic set up?
For example, if the content of the article is set to appear in roman, light, black how can I have it in italic, bold, and blue?

I tried italic and bold tags, they work.
But font color:#FF3300, for example, doesn’t.
Why?

Is it possible to use BB Code?

Last edited by Germaris (2005-12-07 14:01:05)


If destiny is against us, just too bad for it!

Offline

#2 2005-12-07 18:07:24

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Text formatting inside an Article

It is not possible to use BBCode, but Textile and regular old HTML should work fine.

Can you give us an example of what you’ve tried before that hasn’t worked?

Offline

#3 2005-12-07 18:48:13

Germaris
Member
From: Montreal, QC Canada
Registered: 2005-11-12
Posts: 44
Website

Re: Text formatting inside an Article

Thank you for your answer.
OK for BB Code.

This is what I tried and didn’t work for the text color:

I used the text color tag: font color:”#FF3300” between < and > and well closed after my text.
Go to http://www.germaris.com/blog/index.php?id=46 and you’ll see that the text doesn’t appear in red…

Last edited by Germaris (2005-12-07 18:50:14)


If destiny is against us, just too bad for it!

Offline

#4 2005-12-07 18:57:33

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Text formatting inside an Article

Try using a “span” tag Gerard. Something like <code><span style=“font-weight:bold;font-style:italic;color:#FF3300;”>Your text here</span></code>.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#5 2005-12-07 19:20:47

Germaris
Member
From: Montreal, QC Canada
Registered: 2005-11-12
Posts: 44
Website

Re: Text formatting inside an Article

Good Stuart, it works ! (I changed the color for a deep blue…)
Thank you.

But… I have had to repeat the tag before each paragraph and, of course, close it at the end of each paragraph.

Would you please also tell me how to make my code to appear in the messages I post here?
I tried [code] bla bla bla [/code] but it didn’t work…


If destiny is against us, just too bad for it!

Offline

#6 2005-12-07 19:26:39

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Text formatting inside an Article

If this is for complete paragraphs (I just thought it was for odd phrases) then set up a class in your CSS something like:-

.redtext { font-weight:bold;<br /> font-style:italic;<br /> color:#FF3300;<br />
}

then in your articles use the textile method for adding a class to the paragraph tag like so:-

<code>p(redtext).</code> Don’t forget the period and leave a blank space before starting the text.

Last edited by thebombsite (2005-12-07 19:27:52)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#7 2005-12-07 19:42:29

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Text formatting inside an Article

Germaris wrote:

Would you please also tell me how to make my code to appear in the messages I post here?

< code> < /code> (without the spaces)

Offline

#8 2005-12-07 19:46:36

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Text formatting inside an Article

Thanks Els. I forgot that bit. ;) Mind you I’ve been here an hour and haven’t got out of “How do I…?” yet. :grin:


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#9 2005-12-07 19:50:25

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Text formatting inside an Article

I noticed that. Every time I think, hey, I can answer that question, you beat me ;)

Offline

#10 2005-12-07 19:58:03

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Text formatting inside an Article

:grin:


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#11 2005-12-07 19:59:08

Germaris
Member
From: Montreal, QC Canada
Registered: 2005-11-12
Posts: 44
Website

Re: Text formatting inside an Article

You are both very clever people and I am very grateful for being so dedicated to the problems of newbies like me !!!


If destiny is against us, just too bad for it!

Offline

#12 2005-12-07 20:01:33

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Text formatting inside an Article

Aw shucks. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB