Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0
Author Message
djw2
Regular
Regular



Joined: Sep 19, 2003
Posts: 95
Location: St. Louis, MO

PostPosted: Sun Jan 04, 2004 10:04 am Reply with quote

Hey,

Take a look at my header links.

http://imwithdennis.com

See how you can barely see the link text? I want to change that.

The problem is that no matter what change I make (notice the divider dots are red now) the <a> tag always comes up as the same color.

Here the standard ccs text code.

Code:
A:link {color:#9DA6BB;FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica;text-decoration:none}

A:active {color:#9DA6BB;FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica;text-decoration:none}
A:visited {color:#9DA6BB;FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica;text-decoration:none}
A:hover {color:#f5f5f5;FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica;text-decoration:underline}
.title        {BACKGROUND: none; COLOR: #DFDFDF; FONT-SIZE: 14px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.content     {BACKGROUND: none; COLOR: #C8C8C8; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica}
.block-title {BACKGROUND: none; COLOR: #FF0000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica}
.storytitle  {BACKGROUND: none; COLOR: #FF0000; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.storycat    {BACKGROUND: none; COLOR: #DFDFDF; FONT-SIZE: 12px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.boxtitle     {BACKGROUND: none; COLOR: #C8C8C8; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.boxcontent  {BACKGROUND: none; COLOR: #C8C8C8; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica}
.option     {BACKGROUND: none; COLOR: #C8C8C8; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.tiny       {BACKGROUND: none; COLOR: #C8C8C8; FONT-SIZE: 11px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.small       {BACKGROUND: none; COLOR: #C8C8C8; FONT-SIZE: 11px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.storycontent  {BACKGROUND: none; COLOR: #C8C8C8; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica}
.headcontent     {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica}


I tried to mimic the copyright and added the folowing code (the copyright code is included).

Code:
/* Header Links info */

.headlinks       { color: #000000; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; letter-spacing: -1px }
a.headlinks       { color: #FF0000; text-decoration: none }
a.headlinks:hover  { color: #2D3546; text-decoration: underline }

/* Copyright and bottom info */
.copyright       { color: #9DA6BB; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; letter-spacing: -1px }
a.copyright       { color: #9DA6BB; text-decoration: none }
a.copyright:hover  { color: #c0c0c0; text-decoration: underline }


That doesn't work. It changes all my text... but not the links or the hover.

Any suggestions?


Thanks.

Dan
 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Jan 06, 2004 8:51 am Reply with quote

Would you please zip the theme you are using and send it to me? Thanks!
 
View user's profile Send private message
djw2







PostPosted: Tue Jan 06, 2004 8:47 pm Reply with quote

You want the theme.php file, the css file... or the whole thing?

The theme is just the Boyz theme from Nukecops... I'd bet you have it. I've only made a few small changes to the overall theme.


Thanks.

Dan
 
Raven







PostPosted: Tue Jan 06, 2004 8:51 pm Reply with quote

If memory serves me right, the A: css tags can only be overwritten using span tags with the style attribute.
 
djw2







PostPosted: Tue Jan 06, 2004 8:55 pm Reply with quote

aaahhhhhh,

So...

Quote:
/* Header Links info */
.headlinks { color: #000000; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; letter-spacing: -1px }
a.headlinks { color: #FF0000; text-decoration: none }
a.headlinks:hover { color: #2D3546; text-decoration: underline }


may work but I need to use a <span> tag... I hadn't tried that.

I'll get back to you.

PEACE!
 
djw2







PostPosted: Tue Jan 06, 2004 9:17 pm Reply with quote

Hey,

Man I was excited... I've been messing with this for a week. Embarassed

This doesn't work...

<span class=\"headlinks\">TEXT HERE</span>


Some as before, changes the text color... but links and hover remain the same as the original css.
 
Raven







PostPosted: Tue Jan 06, 2004 9:43 pm Reply with quote

I know I've done this. Try it with a div tag.
 
Raven







PostPosted: Tue Jan 06, 2004 10:15 pm Reply with quote

djw2 wrote:
Hey,

Man I was excited... I've been messing with this for a week. Embarassed

This doesn't work...

<span class=\"headlinks\">TEXT HERE</span>


Some as before, changes the text color... but links and hover remain the same as the original css.
Just reread this. That's not what I said. I said the span tag with the STYLE attribute, not the class attribute. Try actually placing the css code in the style tag like
Code:
<span style="a.headlinks.color:#FF0000; text-decoration: none;">
 
djw2







PostPosted: Tue Jan 06, 2004 10:40 pm Reply with quote

Nope.

Like this...

<span style="a.headlinks.color:#FF0000; text-decoration: none;">

the quote stops the code. (everthing past it is commented out)


So I tried this...

<span style=\"a.headlinks.color:#FF0000; text-decoration: none;\">

That didn't screw anything up... but it didn't do anything either.


Confused

I'm not superskilled in this area.


PEACE!
 
Raven







PostPosted: Wed Jan 07, 2004 12:45 am Reply with quote

I knew I had done this Smile. Here is the raw html/css. I'll let you convert it to php Wink
Code:
<style>

A:link {color:#9DA6BB;FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica;text-decoration:none}
A:visited {color:#9DA6BB;FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica;text-decoration:none}
A:hover {color:#f5f5f5;FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica;text-decoration:underline}
A:active {color:#9DA6BB;FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica;text-decoration:none}
A.red:hover {color:#FF0000;}
</style>
<a href="yahoo.com" class=red>Yahoo</a>


BTW, the reason the other code 'stopped' is that I gave you the raw html code. When echoing the code you sometimes have to ad the \, depending on your quoting preferences.
 
djw2







PostPosted: Thu Jan 08, 2004 6:33 am Reply with quote

Hey Raven,

That did it.

Thanks for all your help.

For others reading this...

I added my "headlinks" (can be anything) command to the css like this.

Code:
A.headlinks:link {color:#000000;FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica;text-decoration:none}

A.headlinks:active {color:#ff0000;FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica;text-decoration:none}
A.headlinks:visited {color:000000;FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica;text-decoration:none}
A.headlinks:hover {color:#ff0000;FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica;text-decoration:underline}


You then call the text style in the theme.php link like this.

Code:
<a href=\"downloads.html\" class=\"headlinks\">Downloads</a>


Looks great, thanks again.


PEACE!

Dan
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.0

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©