Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-28-2009, 09:59 AM   PM User | #1
NSG
New Coder

 
Join Date: Aug 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
NSG is an unknown quantity at this point
Thumbs down Bold/Unbold (bold when new content, unbold when not new)

On my website, I recently began doing mod rewrites and the links no longer correctly go bold and unbold. I am unsure why, and if anyone could offer some advice it'd be greatly appreciated:

http://boards.nsgstation.com/the-asylum-b135

If you click a thread, it unbolds it, but if a new post is made the thread never goes back to being bold. Please help, thank you!
NSG is offline   Reply With Quote
Old 08-28-2009, 11:16 AM   PM User | #2
effpeetee
Senior Coder

 
effpeetee's Avatar
 
Join Date: Feb 2007
Location: Clapham Junction - London SW
Posts: 4,884
Thanks: 228
Thanked 204 Times in 203 Posts
effpeetee is an unknown quantity at this point
On my PC the unbolding is caused by the browsing history. If you clear the browsing history, the link will revert. I don't know what you can do about it unless you can set the browser not to save in browsing history, but that would only work on your PC, not necessarily on the remote one.
Frank

Also you have a lot of code before the Doctype. The Doctype should be the FIRST line of your code. The <style> </style>code should be in the <head></head> part of the page.
__________________
* Sources (updated: 21.11.2012.
Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

Last edited by effpeetee; 08-28-2009 at 11:27 AM..
effpeetee is offline   Reply With Quote
Old 08-28-2009, 11:25 AM   PM User | #3
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
The CSS contains
Code:
a.SubjectLink {/*ign.php (line 151)*/
......
font-weight:bold;
....
}
a.SubjectLink:visited {/*ign.php (line 169)*/
......
font-weight:normal;
....
}
Refer http://www.w3schools.com/CSS/css_pseudo_classes.asp
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

Last edited by abduraooft; 08-29-2009 at 05:29 AM..
abduraooft is offline   Reply With Quote
Old 08-29-2009, 12:06 AM   PM User | #4
NSG
New Coder

 
Join Date: Aug 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
NSG is an unknown quantity at this point
I still do not know of a fix. Same behavior is still happening. Help? It didn't start happening until I began doing the mod_rewrites.

Also put doctype at the top, thanks for the tip.
NSG is offline   Reply With Quote
Old 08-29-2009, 02:08 AM   PM User | #5
NSG
New Coder

 
Join Date: Aug 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
NSG is an unknown quantity at this point
I use stylesheets so the psuedo url would be too much I think as I'd have to edit multiple stylesheets. I've been trying to fix it all day, but nothing is working.
NSG is offline   Reply With Quote
Old 08-29-2009, 07:04 AM   PM User | #6
bazz
Master Coder

 
Join Date: Apr 2003
Location: in my house
Posts: 5,211
Thanks: 39
Thanked 201 Times in 197 Posts
bazz will become famous soon enoughbazz will become famous soon enough
Your doctype should not be surrounded by comment tags because the browsers can't read it. remove the <!-- and the -->.

I tried to run your page through the validator and it wouldn't work saying you had errors preventing it.

Tip: put all your css into an external file so you will only have one to chnage instead of many.

bazz
__________________
"The day you stop learning is the day you become obsolete"! - my late Dad.

Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
Useful MySQL resource
Useful MySQL link
bazz is offline   Reply With Quote
Reply

Bookmarks

Tags
bold, content, mod_rewrite, unbold

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:15 AM.


Advertisement
Log in to turn off these ads.