The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Alternating Post Colors? Help?

View previous topic View next topic Go down

Alternating Post Colors? Help?

Post by SpawnAgain on November 25th 2012, 5:09 am

Ok so I am wanting to have a slight difference in color between the replys(just like this help forum). If possible i would like it if the forum admin had a special color like orange for the reply background. If also possible, could you tell me were to put the code in the general template? Thanks!
Forum Newbie,
Tyler

Forum: http://spawnagain.forumotion.com/t1-your-first-subject


EDIT: Forum is PhpBB2

SpawnAgain
New Member

Posts : 1
Reputation : 1
Language : ? I think CSS?

Back to top Go down

Re: Alternating Post Colors? Help?

Post by nextlevelgaming on November 25th 2012, 5:35 am

Code:
.post td.row1{background-color:#fff;}
.post td.row2{background-color:#000;}
.row2 .messaging .gensmall{background:#000;}
.row1 .messaging .gensmall{background:#000;}
.row2 .browse-arrows{background:#000;}
.row1 browse-arrows{background:#000;}

That should work. Change the hex codes to what you want though.
Try and keep your row2 colors and row1 colors all the same, like all the css styles I gave above for row2 keep color same...and for the row1s keep those colors the same,

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Re: Alternating Post Colors? Help?

Post by tomtastic on December 7th 2012, 1:41 am

It didn't work for me. I have the background set to a color, does it need to be removed?

tomtastic
New Member

Posts : 14
Reputation : 1
Language : English

Back to top Go down

Re: Alternating Post Colors? Help?

Post by nextlevelgaming on December 7th 2012, 2:38 am

Um actually I don't know what I posted now. Do you want to have an admin with different colors?

If so please visit http://easybbtutorials.forumotion.com/t10-post-background-effect

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Re: Alternating Post Colors? Help?

Post by tomtastic on December 7th 2012, 3:02 am

Basically alternating colors for posts. When the first person makes a post it is light magenta, then the next post is light orange, then light magenta again, etc. Background color of the post.

tomtastic
New Member

Posts : 14
Reputation : 1
Language : English

Back to top Go down

Re: Alternating Post Colors? Help?

Post by nextlevelgaming on December 7th 2012, 3:10 am

OK so that code above should work. After you put your hex codes in the CSS put a !important after it and close ;

I'm on phone now so it sucks. Give me minute and I'll give you the exact code you need

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Re: Alternating Post Colors? Help?

Post by tomtastic on December 7th 2012, 5:00 pm

I copy pasted the code and added !important but it still doesn't do anything. Would you not need to define it as odd and even posts?

tomtastic
New Member

Posts : 14
Reputation : 1
Language : English

Back to top Go down

Re: Alternating Post Colors? Help?

Post by nextlevelgaming on December 7th 2012, 8:28 pm

No phpbb2 has row1 row2 but I suppose even n odd

nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Re: Alternating Post Colors? Help?

Post by EverEffects on December 7th 2012, 8:38 pm

The problem I'm getting with this, is that even when I change the hex to a different color it wont change, now I'm not sure if that has to do with my main settings on my forum but I thought I'd ask. Take a look at my forum to see what I'm saying. I was trying to change the administrator posts to a mono-toned yellow.


EverEffects
Forumember

Posts : 105
Reputation : 1
Language : English

Back to top Go down

Re: Alternating Post Colors? Help?

Post by nextlevelgaming on December 8th 2012, 12:43 am

for administrator post you must use the link I gave you above, that is a specific code. for alternating post color use this CSS

Code:
.post td .row1{background:#000 !important;}
.post td .row2{background:#000 !important;}
or

Code:
.post:even{background:#000 !important;}
.post:odd{background:#000 !important;}


problem with even and odd is that it is CSS3 some browsers will not support it.


nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum