Previous Thread
Next Thread
Print Thread
Rate Thread
#285077 05/02/2005 8:53 PM
Joined: Mar 2005
Posts: 2
Lurker
Lurker
Joined: Mar 2005
Posts: 2
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

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Threads version? 6.5.1.1 has a post tracking bug

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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 />}  

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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

234234 #285081 05/04/2005 11:17 AM
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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.

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
you know I went right by those comma's.. good catch!

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Thus is the advantage of clean code.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)