I have this neat forum script that uses a simple stylesheet. What I'd like to change is the way the posts are displayed.
All the posts have the same background color and I would like the posts to alternate background color,
such as light-dark-light-dark, etc. The part that controls the row background color is named .forumrow.
Here's the code from my css file.
.forumrow {font-family: Verdana,Sans-serif; color: #000000;background-color: #dddddd;font-size: 12px;}
/*color of the forum rows*/
And in the html of the files it has <tr class=forumrow> and <tr row=forumrow>There is no attribute "row." Instead of using a non-standardized, non-existant and utterly useless attribute, I'd recommend outputting "class=forumrow" and on alternated rows, "class=forumrowalt" or something of the like. Then you can change the CSS accordingly and your problem will be solved. Additionally, your HTML will be valid.There is no attribute "row." Indeed, where did you get the idea that there might be?
ALA, have a pretty helpful article on this, but it pretty much concludes with what jona said.
<!-- m --><a class="postlink" href="http://www.alistapart.com/articles/zebratables/Originally">http://www.alistapart.com/articles/zebr ... Originally</a><!-- m --> posted by the tree
ALA, have a pretty helpful article on this, but it pretty much concludes with what jona said.
<!-- m --><a class="postlink" href="http://www.alistapart.com/articles/zebratables/">http://www.alistapart.com/articles/zebratables/</a><!-- m -->
Yeah, I was going to link to that article, but it seems he already have everything figured out, except for using alternating classes instead of alternating attributes.
All the posts have the same background color and I would like the posts to alternate background color,
such as light-dark-light-dark, etc. The part that controls the row background color is named .forumrow.
Here's the code from my css file.
.forumrow {font-family: Verdana,Sans-serif; color: #000000;background-color: #dddddd;font-size: 12px;}
/*color of the forum rows*/
And in the html of the files it has <tr class=forumrow> and <tr row=forumrow>There is no attribute "row." Instead of using a non-standardized, non-existant and utterly useless attribute, I'd recommend outputting "class=forumrow" and on alternated rows, "class=forumrowalt" or something of the like. Then you can change the CSS accordingly and your problem will be solved. Additionally, your HTML will be valid.There is no attribute "row." Indeed, where did you get the idea that there might be?
ALA, have a pretty helpful article on this, but it pretty much concludes with what jona said.
<!-- m --><a class="postlink" href="http://www.alistapart.com/articles/zebratables/Originally">http://www.alistapart.com/articles/zebr ... Originally</a><!-- m --> posted by the tree
ALA, have a pretty helpful article on this, but it pretty much concludes with what jona said.
<!-- m --><a class="postlink" href="http://www.alistapart.com/articles/zebratables/">http://www.alistapart.com/articles/zebratables/</a><!-- m -->
Yeah, I was going to link to that article, but it seems he already have everything figured out, except for using alternating classes instead of alternating attributes.