TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,965
  • Latest: boruko
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 431
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 127
  • Total: 127

Article coloring

Started by ForumGuy789, August 18, 2007, 06:49:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ForumGuy789

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.

G6Cad

You make it with eather the editor and let it help you, or you code it in eather HTML or PHP

ForumGuy789

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

G6Cad

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.

IchBin

only thing I would suggest is to put everything into a div or table and just change the background color to whatever you need.

ForumGuy789


Ken.

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.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Ken.

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.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

This website is proudly hosted on Crocweb Cloud Website Hosting.