code to format the look of a future post?

boffer10 at 17h46
14
Dec
2011
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:

Code:
/*-----------------------MAKES AN INDIVIDUAL POST BG CHANGE COLORS-----------*/
#p100000.post.row1{background-color:#b016b8;
      background-image: url(http://i47.servimg.com/.../body-b10.png);
      background-position: top left;
      background-repeat:repeat;
      text-indent:0px;}

#p100000.post.row2{background-color:#b016b8;
      background-image: url(http://i47.servimg.com/.../body-b10.png);
      background-position: top left;
      background-repeat:repeat;
      text-indent:0px;}

/*------------------------------END CHANGE POST COLOR-----------------*/


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?
1 Guest, on 14/12/2011 at 19h50
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.
2 boffer10, on 14/12/2011 at 20h07
Thanks a lot, Dion. This is going to be fun, and I learned a couple things!





EDIT>>this topic is completed.
3 Jophy, on 14/12/2011 at 23h56
Topic Solved & Moved

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

Similar topics
Currency tax — a way to invest in our future (Rep. Stark) By Rep. Pete Stark (D-Calif.) - 07/20/10 03:51 PM ET Each day, $4 trillion dollars of currency are traded. For international businesses and travelers, trading dollars for other currencies serve
Hi All, Our OLTP system supports effective dated concept. So users can enter Future Dated Rows also. And in our Warehouse we have both Type1 Dimesnions and Type2 Dimensions. When loading the data to Type1 dimesnions, if we load future dated row
Lot of people will pay attention to EPS AND P/E However we can get many bull factors from quarterly reports and annual reports. Once we read quarterly reports we can become bullish, bearish or extremely bullish. We can become extremely bullish by
See also
more_less
Informations

3 Replies For the topic :
"code to format the look of a future post?"

This topic has been viewed 713 times.

Last message :
14/12/2011 at 17h46 by "boffer10"