Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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
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
Re: Text formatting inside an Article
:grin:
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
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
Re: Text formatting inside an Article
Aw shucks. :)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline