You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 69 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - more than one color for link in style sheets [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
vinc3nzo
Sergeant
Sergeant


Joined: Feb 28, 2003
Posts: 77


PostPosted: Thu May 01, 2003 8:28 am Reply with quoteBack to top

there are certain links i want to be a different color than the standard link color in my style sheet. is there a way to define this in style.css?

thanks!
Find all posts by vinc3nzoView user's profileSend private messageVisit poster's website
vinc3nzo
Sergeant
Sergeant


Joined: Feb 28, 2003
Posts: 77


PostPosted: Thu May 01, 2003 8:35 am Reply with quoteBack to top

here's my style sheet. you'll see where i tried to make a defininiton under "2content" for link style... it didn't work.

Code:
TD      {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
BODY      {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
P      {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
DIV      {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
INPUT      {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
TEXTAREA   {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
FORM       {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 11px}
A:link          {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:active        {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:visited       {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:hover         {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
.title       {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 13px; FONT-WEIGHT: bold; FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif; TEXT-DECORATION: none}
.content    {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif}
.2content    {BACKGROUND: none; COLOR: #FF9900; FONT-SIZE: 11px; FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif}
a.2content:link       {BACKGROUND: none; COLOR: #FF9900; FONT-SIZE: 11px; FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif}
a.2content:active     {BACKGROUND: none; COLOR: #FF9900; FONT-SIZE: 11px; FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif}
a.2content:visited    {BACKGROUND: none; COLOR: #FF9900; FONT-SIZE: 11px; FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif}
a.2content:hover      {BACKGROUND: none; COLOR: #FF9900; FONT-SIZE: 11px; FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif}
.elcontent    {
   BACKGROUND: none;
   COLOR: #FF6600;
   FONT-SIZE: 13px;
   FONT-FAMILY: Verdana, Helvetica;
   font-style: normal;
   font-weight: bold;
   font-variant: small-caps;
}
.storytitle    {
   BACKGROUND: none;
   COLOR: #363636;
   FONT-SIZE: 14px;
   FONT-WEIGHT: bold;
   FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif;
   TEXT-DECORATION: none;
   font-style: italic;
}
.storycat   {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 13px; FONT-WEIGHT: bold; FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif; TEXT-DECORATION: underline}
.boxtitle    {BACKGROUND: none; COLOR: #363636; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif; TEXT-DECORATION: none}
.boxcontent    {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 12px; FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif}
.option    {
   BACKGROUND: none;
   COLOR: #000000;
   FONT-SIZE: 13px;
   FONT-WEIGHT: bold;
   FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif;
   TEXT-DECORATION: none;
   font-style: italic;
}
.tiny      {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif; TEXT-DECORATION: none}
.footmsg        {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 8px; FONT-WEIGHT: normal; FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif; TEXT-DECORATION: none}
.footmsg_l   {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 8px; FONT-WEIGHT: normal; FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif; TEXT-DECORATION: underline}
.box      {FONT-FAMILY: Geneva, Arial, Helvetica, sans-serif; FONT-SIZE: 11px; border: 1px solid #000000; background-color: #FFFFFF}
Find all posts by vinc3nzoView user's profileSend private messageVisit poster's website
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Thu May 01, 2003 8:49 am Reply with quoteBack to top

I'm too lazy to read it all Laughing . Here's how you do it - you apply it like this using a class= syntax Wink .
Code:

A:link          {BACKGROUND: none; COLOR: red; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:active        {BACKGROUND: none; COLOR: green; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:visited       {BACKGROUND: none; COLOR: blue; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A.2content:link          {BACKGROUND: none; COLOR: yellow; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A.2content:active        {BACKGROUND: none; COLOR: yellow; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A.2content:visited       {BACKGROUND: none; COLOR: yellow; FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
</style>
This is a <a href=#>Test</a>.
<br><br>
This is a <a href=# class="2content">Test2</a>.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
vinc3nzo
Sergeant
Sergeant


Joined: Feb 28, 2003
Posts: 77


PostPosted: Thu May 01, 2003 9:05 am Reply with quoteBack to top

thanks! i had to go into the modules/news/index.php file and change $story_link to reflect the class function in the link.


thanks again!
Find all posts by vinc3nzoView user's profileSend private messageVisit poster's website
Odolan_
Nuke Cadet
Nuke Cadet


Joined: Jul 07, 2003
Posts: 9


PostPosted: Tue Jul 08, 2003 12:54 pm Reply with quoteBack to top

anymore ideas folks?

Iam trying to display my download title with different link (color, size..etc)

Code:
<font class=\"2content\">


original link still wont be overwritten.....
Find all posts by Odolan_View user's profileSend private message
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Tue Jul 08, 2003 1:47 pm Reply with quoteBack to top

Once you create the new css class in your stlye sheet and uploaded it, You may need to clear your Temp. Internet Files.
In some cases, the style.css file won't be reloaded by the browser.

If you did all correctly, then try the above clearing your temp files.
Also, I wouldn't use numbers, 2content. try a different name like dlcontent

mikem

_________________
Getting Started | My Projects
Find all posts by mikemView user's profileSend private message
Odolan_
Nuke Cadet
Nuke Cadet


Joined: Jul 07, 2003
Posts: 9


PostPosted: Wed Jul 09, 2003 5:01 am Reply with quoteBack to top

yes its working! altho..its not exactly what i try to accomplish.
I need to edit my url titles manually with that html tag to make it work.

Iam not lazy or something i just want it to be automated.

This is the code iam using in modules/downloads/index.php function viewdownload()

Code:
echo "<font class=\"test\"><a href=\"modules.php?name=$module_name&d_op=getit&lid=$lid\">$title</font></a>";


Still no luck Sad
Find all posts by Odolan_View user's profileSend private message
Odolan_
Nuke Cadet
Nuke Cadet


Joined: Jul 07, 2003
Posts: 9


PostPosted: Wed Jul 09, 2003 5:11 am Reply with quoteBack to top

oops, just solved it Very Happy
i dont think the code above is wrong....

but it happen to work with this one....

Code:
echo "<a class=\"test\" href=\modules.php?name=$module_name&d_op=getit&lid=$lid\">$title</a>";


its working now fine!
Very Happy
Find all posts by Odolan_View user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Wed Jul 09, 2003 5:14 am Reply with quoteBack to top

Laughing I think that's what I said in the beginning Laughing

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.217 Seconds - 310 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::