css in link tag

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

css in link tag

Post by s.dot »

The css I have works fine if I just put it straight on the page, but when I put it inside a link tag

Code: Select all

<link rel="stylesheet" href="includes/style.css" type="text/css">
the font color comes out black (its specified as white)

Code: Select all

<style type="text/css">
.nav {
	color: #000000;
	font-family: "verdana",arial;
	font-size: 7pt;
	font-weight: bold;
}
.nav a:link {
	color: #FFFFFF;
	font-family: "trebuchet ms",arial;
	font-size: 10pt;
	text-decoration: none;
	font-weight: bold;
	text-transform: uppercase;
}
.nav a:active {
	color: #FFFFFF;
	font-family: "trebuchet ms",arial;
	font-size: 10pt;
	text-decoration: none;
	font-weight: bold;
	text-transform: uppercase;
}

.nav a:visited {
	color: #FFFFFF;
	font-family: "trebuchet ms",arial;
	font-size: 10pt;
	text-decoration: none;
	font-weight: bold;
	text-transform: uppercase;
}
.nav a:hover {
	color: #FF33FF;
	font-family: "trebuchet ms",arial;
	font-size: 10pt;
	text-decoration: none;
	font-weight: bold;
	text-transform: uppercase;
}
</style>
The links work fine, but just regular .nav text comes out black
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

<style> tags are not apart of the css standard last I checked.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Hmm, even without them the text is still black.

Code: Select all

<td class="nav" width="33%" align="center">• <a href="members/">members</a> •</td>
the • should be white
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

.nav has a #000000 color attribute.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

LOLOLOLOLOLOLOLOLOLOLOLOLOLOL

:lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:

Forgive the excessive laughing, but I can't believe this.

I put #000000, and wondered why it was black.

Ahahahaha, sometimes after looking at a bunch of code, those #000000's look like #FFFFFF's :(
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

It happens to everyone :)
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

How long were you stuck on that one scottayy? :D
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

:lol:

One of those days dude...one of those days
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Sure makes me think back to some of my more nerve-wracking, WTF was I thinking kind of moments. At least you have the support of this community, where, eventhough we are thinking "What a <insert self-describing descriptive word for goober here>" we would never say it on the screen. I have so done things like that so many times, I am embarrassed at the thought of them... :oops:

I think you should step away from the computer, brew a nice pot of hot #000000 coffee and chill out for a little bit. :wink:
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

Everah wrote:...brew a nice pot of hot #000000 coffee...
tam
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Glad I could be of service...
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

Burrito wrote:
Everah wrote:...brew a nice pot of hot #000000 coffee...
tam
It made me laugh.

The one that gets me is writing a function and then discovering its already written in the standard php function library. I've done that way too many times.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Setting a variable to an unchanging value and using it in loops. The loop and loop and loop and loop and loop and loop and loop and loop and loop and loop and loop and loop and loop and loop and loop and loop and loop and loop and loop and loop
^c

Sorry about that... :wink:

Or doing a while loop that always returns true...

Code: Select all

<?php
$looper = 5;
$loopey = 10;
while ($looper < $loopey)
{
    // Repeatedly show how stupid I am until the server throws up on me 
    // or I just get tired and go to sleep
    echo "I are super coder man!<br />";
}
?>
Post Reply