I am guessing here since you posted only a small snippet of your code. But I think you have a rule somewhere for visited links which is what is turning your links orange a you described.
I think your nested ID selector is overkill. IDs are unique. If the rest of your code is done correctly, you should only need:
Code:
#welcome span, #firstName{...}
OT:
you could stream line your PHP as well:
PHP Code:
<div id='welcome'>
<? echo (isset($_SESSION['loggedIn']) && $_SESSION['loggedIn']) ?
"<span>Hello, <a id='firstName' href='/account/profile.php'>" . htmlspecialchars($memberFirstName, ENT_QUOTES) . "</a>!</span>":
"<span>Hello.</span> <a href='/account/log_in.php'>Log In</a> to access premium content. Not a Member? <a href='/account/create_account.php'>Start Here</a>";
?>
</div>
Bookmarks