a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

link color help ..please

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets and Accessibility >> link color help ..please
Page: [1]
 
Lazykatz

 

Posts: 163
Joined: 1/12/2005
Status: offline

 
link color help ..please - 2/14/2005 21:58:21   
hi all,

I've searched high and low... grrrrr!

Can anyone tell me how, or direct me to a tutorial,
on how to code stylesheet for multiple hyperlink colors.
I have dark and light backgrounds, and need 2 seperate
set of colors for hyperlinks.

Thankz All in Advanze,
Grizz :)

_____________________________

http://lazykatz.com

Nicole

 

Posts: 2854
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: link color help ..please - 2/14/2005 22:35:42   
HI Grizz,

Do you mean you have one set of links on a dark background and another on a light background and you want to style them both differently on the same style sheet?

Well being the CSS expert that i am........................not...................lol, why not give one set of links a class id and the other set another class id?

like

a:link.dark {......
}

a:visited.dark {........
}

and

a:link.light {......
}

a:visited.light {........
}

Nicole

_____________________________

:)

(in reply to Lazykatz)
bobby

 

Posts: 11399
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: link color help ..please - 2/14/2005 23:11:34   
you can also just code your standard <a> tag for the majority of your links... then for the dark background set up an alternative link style.

I've always done it the other way around:

a.alt:link {
}

(then :visited, :hover and :active)

then <a class="alt" href=...



_____________________________

In order to remove a wall you must first remove the Windows®


:)

(in reply to Nicole)
Lazykatz

 

Posts: 163
Joined: 1/12/2005
Status: offline

 
RE: link color help ..please - 2/15/2005 1:02:39   
Thanks Nicole and Bobby,

I'll try your reponses.. I have tried numberous edits..
but nothing worked. If I still can't get them to work,
I'll post code in question.

Thankz again,
Grizz:)

_____________________________

http://lazykatz.com


(in reply to bobby)
Nicole

 

Posts: 2854
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: link color help ..please - 2/15/2005 1:55:20   
Grizz,

If you take a look at a thread just below this titled "CSS List Problem" (I don't know how to link to other threads.....yet), you'll see the code for one of my style sheets and a link to a page that it applies to. You'll notice that i've several classes of links in my style sheet, and when applying them in the website you'll notice from that code that you'll have to type:

a: class="xxxxx" href="......

to differentiate between the different styles you're applying.

Nicole

_____________________________

:)

(in reply to Lazykatz)
Lazykatz

 

Posts: 163
Joined: 1/12/2005
Status: offline

 
RE: link color help ..please - 2/15/2005 19:28:26   
hi Nicole,

Thanks again.. after umteen correct stylesheet edits,
it does help if I change the tag in the HTML..
DUH..another flaw in my empty head..lol ..Issue Resolved.

To post links to previous threads..
I used your previous post as an example..

To the main thread, open thread and copy/paste the link from the address bar.
http://www.frontpagewebmaster.com/m-252740/tm.htm

To post to a speciffic link in a thread,
in the top right corner of the thread,
click the link "Post #: 1,2,3, etc",
it will open a new window with the address to that specific post, copy/paste.
I used your post #: 4,
http://www.frontpagewebmaster.com/fb.asp?m=252799

Thank again,
Grizz :)

_____________________________

http://lazykatz.com


(in reply to Nicole)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> Cascading Style Sheets and Accessibility >> link color help ..please
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts