Expression > Forums Home > Expression Studio Forums > Expression Web and SuperPreview > Want different colours on hyperlinks on different parts of each page - how?
Ask a questionAsk a question
 

QuestionWant different colours on hyperlinks on different parts of each page - how?

  • Monday, November 02, 2009 9:56 PMCBroman Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,
    The design of my webpage requires different colours on the hyperlinks on the various parts of the page, due to different background colours. How do I achieve thisin Expression web?
    Thank you!
    C Broman

All Replies

  • Tuesday, November 03, 2009 4:00 AMPhroneo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Greetings,

    You might be better off asking your question on the Expression Web forum. That being said, one uses CSS pseudo-class selectors to control the appearance of the  :link and :visited  and a:hover :active and :focus objects for hyperlinks. You might find some stimulating (Ha!) reading on the W3C site .

    CSS is a lot of fun.  One can do all sorts of neat stuff. You migh enjoy learning a little more about it.

    Peace,

    Phroneo
  • Tuesday, November 03, 2009 7:49 PMVeignMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    You can't do exactly what you want.  You'll have to apply a different class or style the link differently based on the container its in.  There is no way for a link to detect the background color and change its color.

    How familiar are you with CSS?
    --
    Chris Hanscom - Microsoft MVP
    On Facebook | On Twitter | Resource Center | Veign's Blog | Web Development Help

    Get a Complete Website Analysis by Veign