How would i go about doing this? - CSS

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

jon

VIP Member
Impact
20
Hello.

I am working on a site at the moment and i would like to make some links in the nav bar a different color to the rest of the site.

http://www.yesthat.com is the site in question. I would like the links in the nav to be white, and the links in the main website to be black.

I would prefere to use inline css for this, im just not sure how to do it.

Anyone know?

Thanks,
Jon
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
How I would go about doing it would be to just do something like this:

<div id="top-navigation">
(links here)
</div>

and then in the CSS go:

a {
(properties for all links)
}

#top-navigation a {
(properties for navigation links)
}

That will work, not sure if you wanted to do it that way though.
 
0
•••
Thats perfect, thanks :)
 
0
•••
Yeah, CSS works great! :)
 
0
•••
Olitt — high-converting AI websites, only from $1/moOlitt — high-converting AI websites, only from $1/mo

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back