UBB.Dev
Posted By: lilywhite Stylesheet problem. - 05/03/2005 3:53 AM
I have a problem with my stylesheets -- for threaded users, we would like to have unread posts in a bold font and when the post has been read the font will be normal. (We also want the background of the cell that post subject is in to change, but let's tackle one problem at a time!)

The problem is that no matter what I change, I can't get this to happen. I even went to another board that has the bolding effect I want (though in different colors) and compared our stylesheet with theirs -- the elements that I think should control this are the same. I think. Perhaps I'm looking at the wrong CSS.

So here are the relevant items. Essentially, I've tried the bolding on everything with the word new in its tag. :-(

Code
<br /><br />.newsubjecttable {border: 1px solid #397521; background-color: #DAF9BF;color: #367021;font-size: 13pxfont-weight: bold;}<br />.newdarktable {border:1px solid #397521; background-color: #DAF9BF;color: #397521;font-size: 13pxfont-weight: bold;}<br />.newlighttable {border:1px solid #397521; background-color: #DAF9BF;font-weight: bold;color: #397521;font-size: 13px}<br />.newsubjecttable .newdarktable .newlighttable a:link {text-decoration: none;font-weight: bold;}<br />.newsubjecttable .newdarktable .newlighttable a:hover {text-decoration: none;}  <br />


Can anyone help me figure out what the problem is?

Something that MAY be related, so I'll mention it. My CSS skills are rudimentary at best (and I inherited this stylesheet, I did not write it) but I tried "View Source" on the page to see what class the lines I wanted in bold were -- and they are NOT classed as newdarktable and newlighttable. They are just classed as darktable and lighttable, even when the new post icon is showing up. :-( When I viewed the source of a page at my comparison board, where the bolding works, the cells that have new post titles are classed as "newdarktable" and "newlighttable."

Another FYI -- now that I consider it, when I'm viewing the post list, the icon that shows in front of each individual post is NOT "newpost.gif" -- it's "newfolder.gif."

Sorry if these are extraneous details; I'm just trying to give as complete a picture and explanation as I can!

Thanks, and again, I appreciate any help, even just pointing me in the right direction.

Lily
Posted By: scroungr Re: Stylesheet problem. - 05/03/2005 4:00 AM
Threads version? 6.5.1.1 has a post tracking bug
Posted By: The Team Re: Stylesheet problem. - 05/04/2005 3:22 AM
well instead of immediately blaming a bug in the forums, I decided to actually read the post, and there are many problems in the css.

Use the following

Code
.newsubjecttable {<br />	border: 1px solid #397521;<br />	background-color: #DAF9BF;<br />	color: #367021;<br />	font-size: 13px;<br />	font-weight: bold;<br />}<br />.newdarktable {<br />	border:1px solid #397521;<br />	background-color: #DAF9BF;<br />	color: #397521;<br />	font-size: 13px;<br />	font-weight: bold;<br />}<br />.newlighttable {<br />	border:1px solid #397521;<br />	background-color: #DAF9BF;<br />	font-weight: bold;<br />	color: #397521;<br />	font-size: 13px;<br />}<br />.newsubjecttable a:link,<br />.newdarktable a:link,<br />.newlighttable a:link {<br />	text-decoration: none;<br />	font-weight: bold;<br />}<br />.newsubjecttable a:hover,<br />.newdarktable a:hover,<br />.newlighttable a:hover {<br />	text-decoration: none;<br />}  
Posted By: scroungr Re: Stylesheet problem. - 05/04/2005 4:56 PM
Ian by having all the css on a single line do ya really think thats an issue? I can see where for asthetics it would look nicer each on its own line? but anyways all I wanted to know is WHICH version Lily is using.. sometimes without posting a version its hard to say what it really is.. say Lily comes back and says they are using 6.1.. well then we would tackle it differently then if Lily came back and said 6.5.1.1
Posted By: The Team Re: Stylesheet problem. - 05/04/2005 6:17 PM
bah, the line breaks weren't the problem, that's just my style of writing it while fixing it. Many missing commas were saying "look for X inside Y inside Z" instead of saying "apply this to X, Y, and Z"

There were also missing semicolons.
Posted By: scroungr Re: Stylesheet problem. - 05/04/2005 8:41 PM
you know I went right by those comma's.. good catch!
Posted By: AKD96 Re: Stylesheet problem. - 05/04/2005 10:35 PM
Thus is the advantage of clean code.
© UBB.Developers