1
karedokx
Dark background in News 1.21 Post Comment
  • 2004/9/20 12:55

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


I installed the latest News 1.21, and found that in the POST (new) COMMENT screen, it shows the preview of our news content (on top of the comment form). Unfortunately, it currently produces a dark background in my theme as the produce code is as follow:

<TABLE class=outer cellSpacing=1 cellPadding=4 width="98%">
<TBODY>
<TR>
<TD class=head>Test story 3</TD></TR>
<TR>
<TD><BR>Posted... <the text of the news>

As you can see it uses "outer" class in the table, but have no class used in the <td>, results in the news text has a dark background.

I want to edit and add the following class for the <td>: <td class="even">.

Can any of you direct me, where can I add/modify the code for that purpose above.

Many thanks!

2
JMorris
Re: Dark background in News 1.21 Post Comment
  • 2004/9/20 13:01

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Classes are defined in the file style.css that is included with the theme. Look for lines like the following....

.outer {border1px solid silver;}
.
head {background-color#555555; padding: 5px; font-weight: bold;}
.even {background-color#999999; padding: 5px; color: #000000;}
.odd {background-color#cccccc; padding: 5px; color: #000000;}
.foot {background-color#555555; padding: 5px; font-weight: bold;}
tr.even td {background-color#999999; padding: 5px; color: #000000;}
tr.odd td {background-color#cccccc; padding: 5px; color: #000000;}


Just edit the background-color and color attributes to suite.

If you need a great program for "capturing" color codes from your screen and mixing custom colors, check out CPick.

Hope this helps.


3
karedokx
Re: Dark background in News 1.21 Post Comment
  • 2004/9/20 13:16

  • karedokx

  • Quite a regular

  • Posts: 319

  • Since: 2004/7/1 6


thanks for the prompt response jmorris.

sorry for my language limitation, i might have not made myself clear.

what i really want is: to have the <td> code in the "Post New Comment" (comment_new.php) produce <td class=something> instead of only <td>, as I tried to describe in my previous email. Currently in my OUTER style, i have set it as follow:
.outer { background-color: #CCCCCC; padding: 0px; }

As the result, my news text (produce by comment_new.php) have a #cccccc background.

hope, i have made my question clear, or even more confusing??

Login

Who's Online

253 user(s) are online (173 user(s) are browsing Support Forums)


Members: 0


Guests: 253


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits