External CSS Stylesheet Question

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

Canopie

Top Member
Impact
773
Hi,

Does anyone know how to code a stylesheet for using two different link colors?

Right now, Im stuck with one color for all links on my page.

Certain links on my page are white, and some are blue, so how can I code so the appropriate link colors show up for specific links?

Thank you,
Steve
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
u can do that by making different css classes and putting those classes to the href tag of the link

e.g

.stylesheetlink1{
color:#00000;
}

.stylesheetlink2{
color:#ececec;
}

now u can apply these classes

<a href="#" class="stylesheetlink1">link test to come here </a>

<a href="#" class="stylesheetlink2">link test to come here </a>

Hope this helps u out

Regards
 
1
Close
i've always wondered how to do this with external style sheets aswell...
golive automatically gives you an external style sheet...

would you recommend to use other wise when creating these classes
 
0
Close
yes u can either edit the the css file which is created with golive or u can use any other css file it doesnt make any difference till the time u get the output as ur liking ... i usually prefer one style sheet for design and one for form element styling
 
0
Close
Thanks Graphix,

It worked! Rep added.
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back