The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

code to format the look of a future post?

2 posters

Go down

Solved code to format the look of a future post?

Post by boffer10 December 14th 2011, 5:46 pm

Our forum has post number 100,000 approaching in a month or two. I would like to make it a big surprise for the poster who writes #100,000. I have found this code to change the post background color/image of a future post.

Spoiler:

My question: Is there a way to put text into post 100,000 ahead of time? Example: Can I make the words "Congratulations...You're a Winner!" show up in post 100,000 when it is posted?
avatar
boffer10
Forumember

Male Posts : 311
Reputation : 10
Language : english
Location : Go Seahawks!

http://squarefoot.creatingforum.com/

Back to top Go down

Solved Re: code to format the look of a future post?

Post by Guest December 14th 2011, 7:50 pm

First, you don't need two rules to change the post itself. You only need this (make sure to replace the "..." in the background image URL with whatever belongs there!):

Code:
#p100000.post{background-color:#b016b8;
      background-image: url(http://i47.servimg.com/.../body-b10.png);
      background-position: top left;
      background-repeat:repeat;
      text-indent:0px;}
And here's the CSS you need to add a short message to the post:

Code:
#p100000 .content:before {display:block; margin-bottom:5px; height:30px; line-height:30px; background:#fff; font-size:18px; text-align:center; content:'Congratulations!';}
Please note that this will not work with IE7. Since so few people use IE7 anymore, this shouldn't be an issue.
avatar
Guest
Guest


Back to top Go down

Solved Re: code to format the look of a future post?

Post by boffer10 December 14th 2011, 8:07 pm

Thanks a lot, Dion. This is going to be fun, and I learned a couple things!

code to format the look of a future post? 104110



EDIT>>this topic is completed.


Last edited by boffer10 on December 14th 2011, 8:12 pm; edited 1 time in total (Reason for editing : complete button disappeard)
avatar
boffer10
Forumember

Male Posts : 311
Reputation : 10
Language : english
Location : Go Seahawks!

http://squarefoot.creatingforum.com/

Back to top Go down

Solved Re: code to format the look of a future post?

Post by Jophy December 14th 2011, 11:56 pm

Topic Solved & Moved

Note: You can also help the staff member's work by EDITING your topic and marking it as solved.
Jophy
Jophy
ForumGuru

Male Posts : 17922
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top

- Similar topics

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