dreamweaver not so dreamy
May 30, 2007 12:22 PM   Subscribe

Dreamweaver question... I want some of the links on a page to be one color, and the rest of the links be a different color. Setting the link colors in page properties makes ALL links the same color. Is there a way to make links of different colors? Maybe by over-riding the page properties in a specific section of the page? Or separating the page props some how? thanks... novice
posted by hazel to Computers & Internet (5 answers total)
 
You can do this with CSS. I don't have any dreamweaver-specific advice but there's a little tutorial here, if you're comfortable editing html.
posted by waterlily at 12:43 PM on May 30, 2007


Yeah, this is easy with CSS. Something like this

a:link {color: #900;}
a.special:link {color: #090;}

You'd then code the links you wanted to appear in the special color as <a href="whatever" class="special">foo</a>

If you've got the page structured so that only links within one block have a special color, you'd wrap that section in something like <div class="special"> and use the css

a:link {color: #900;}
div.special a:link {color: #090;}
posted by adamrice at 12:56 PM on May 30, 2007


Here's another tutorial, which seems to be just a tad easier than waterlily's link.
posted by Meagan at 12:56 PM on May 30, 2007


Yep, that's the way to do it! But I thought I better stop in, just in case you needed my confirmation. :)
posted by The Deej at 3:26 PM on May 30, 2007


Response by poster: Thanks...I also found a couple of more tutorials (since y'all gave me a term I could search):

this one
and another

new lingo I have learned: "pseudo classes" and "container styles"
posted by hazel at 3:40 PM on June 1, 2007


« Older For various reasons I need to work out in my...   |   How much should it cost to add meta tags to an ASP... Newer »
This thread is closed to new comments.