TinyPortal

General => Chit chat => Topic started by: ForumGuy789 on August 18, 2007, 06:49:19 PM

Title: Article coloring
Post by: ForumGuy789 on August 18, 2007, 06:49:19 PM
Whats the best way for me to make an article with it's own color scheme for background and text color?

I'm not familiar with style sheets really, but am more familiar with some html. I currently have a dark theme but want many articles to be nice and white with black text, by default.

If i have to make a huge table for it , thats probably ok too.
Title: Re: Article coloring
Post by: G6Cad on August 18, 2007, 07:02:01 PM
You make it with eather the editor and let it help you, or you code it in eather HTML or PHP
Title: Re: Article coloring
Post by: ForumGuy789 on August 18, 2007, 07:09:17 PM
I just cant find a thing in the editor that will turn the whole article background a certain color.

And highlighting text in a background color doesnt count. I'm talking about the whole article.

Maybe i'm missing something
Title: Re: Article coloring
Post by: G6Cad on August 18, 2007, 07:32:45 PM
I dont know if there is a way then to change the color for a single article when you create one, the only thing i have heard of before is to alter the code in Stye.css, but that will change the background for all articles to the same.
I will have to leave this one for the Coders.
Title: Re: Article coloring
Post by: IchBin on August 18, 2007, 07:46:58 PM
only thing I would suggest is to put everything into a div or table and just change the background color to whatever you need.
Title: Re: Article coloring
Post by: ForumGuy789 on August 18, 2007, 07:54:22 PM
ok thanks guys
Title: Re: Article coloring
Post by: Ken. on August 18, 2007, 10:18:00 PM
Just tried building the code in an external editor and including a background color and then pasting the code into a test article but did not get it to work. Still playing with it to see if there's a way to make it work.
Title: Re: Article coloring
Post by: Ken. on August 18, 2007, 11:52:19 PM
The suggestion by IchBinâ„¢ seems to be the only way to go at this point.

Tried a lot of different approaches and the only one that I could get to work was a table...
By using a single cell table and setting the cell properties the result was an article page that gives the background color as seen at the link below.
http://www.mykimbrell.com/FamilyForum/index.php?page=94

I played around with the settings a lot trying to make the color fill the entire table box, but so far haven't found how to make it do that in FireFox, in IE7 & K-Mellon it looks OK.
It looks lots better in a custom theme like VirtualCell than it dose in the SMF Default theme.