Previous Thread
Next Thread
Print Thread
Hop To
#212836 05/19/2008 5:57 AM
Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
OK I am trying to get it so that 2 colors are used in the Shout Box - each alternative post having a slightly different shade.

I've been trying for ages but unsuccessfully.... which part of the styles will that be in (I thought it would be left/right column but it doesn't seem to be),

Thanks

Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
I am pretty much clueless if it comes to stylesheets, but I do use a nifty toolbar in firefox that tells me which class is used somewhere on a page.

http://chrispederick.com/work/web-developer/

Hope that helps.


[Linked Image from siemons.org]
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
it uses alt-1 and alt-2 (so just change those two), or you can take advantage of the fact that it's all surrounded by a div named 'shout_content'

then your extra css can be

#shout_content .alt-1 { background: pink;}
#shout_content .alt-2 { background: blue;}

and you get what you want.. btw, i only show those colors for example.. you prolly want other stuff and also maybe not just the background colors too smile


Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
Where do I put these again Sirdude?

Thanks for all the help you have been great.

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
when you edit your styles, there is an Extra css section at the bottom.. just slam your new stuff there for each style wink

by cascading the #shout-content with alt-1 and alt-2, you aren't modifying the original alt-1 and 2... so you have free reign to style the cascaded style as you like.

Joined: Feb 2007
Posts: 678
W
old hand
old hand
W Offline
Joined: Feb 2007
Posts: 678
OK thank you!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 872 guests, and 248 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)