Page 1 of 1

css in link tag

Posted: Thu Apr 13, 2006 11:09 pm
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

Posted: Thu Apr 13, 2006 11:49 pm
by feyd
<style> tags are not apart of the css standard last I checked.

Posted: Fri Apr 14, 2006 12:03 am
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

Posted: Fri Apr 14, 2006 3:31 am
by Benjamin
.nav has a #000000 color attribute.

Posted: Fri Apr 14, 2006 5:02 am
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 :(

Posted: Fri Apr 14, 2006 6:02 am
by Benjamin
It happens to everyone :)

Posted: Thu Apr 27, 2006 2:32 am
by Ollie Saunders
How long were you stuck on that one scottayy? :D

Posted: Thu May 11, 2006 10:15 pm
by alex.barylski
:lol:

One of those days dude...one of those days

Posted: Fri May 12, 2006 1:30 am
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:

Posted: Fri May 12, 2006 1:34 am
by Burrito
Everah wrote:...brew a nice pot of hot #000000 coffee...
tam

Posted: Fri May 12, 2006 1:39 am
by RobertGonzalez
Glad I could be of service...

Posted: Fri May 12, 2006 1:49 am
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.

Posted: Fri May 12, 2006 1:54 am
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 />";
}
?>