HighDots Forums  

Different colour links on same page

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Different colour links on same page in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
g-rebel
 
Posts: n/a

Default Different colour links on same page - 04-01-2009 , 12:30 PM






Hi. I have different parts to my webpage, some are red and some are white. In
the white bit I want normal blue links and in the red i want white links.
However, if i create a new css sheet for the links they all go white. Can
someone tell me how i can apply different styles to different sets of links.
Thanks.


Reply With Quote
  #2  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Different colour links on same page - 04-01-2009 , 12:40 PM






Pseudo-classes and container styles are what you need - here are some
tutorials.
http://www.thepattysite.com/linkstyles1.cfm
http://www.projectseven.com/tutorials/pseudoclasses/index.htm

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"g-rebel" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi. I have different parts to my webpage, some are red and some are white.
In
the white bit I want normal blue links and in the red i want white links.
However, if i create a new css sheet for the links they all go white. Can
someone tell me how i can apply different styles to different sets of
links.
Thanks.



Reply With Quote
  #3  
Old   
Nancy O
 
Posts: n/a

Default Re: Different colour links on same page - 04-01-2009 , 12:42 PM



What you want is a new set of link pseudo-classes. Put this in your CSS
(change the colors and rules to suit your particular needs).

CSS:
-------------
..newlink:link{/*unvisited*/
color:#990000;
text-decoration:none}

..newlink:visited{/*visited*/
color:#9999FF;
text-decoration:none}

..newlink:hover{/*mouseover*/
color:#990000;
background:none;
text-decoration:underline}

..newlink:active{/*selected*/
color:#FFCC00;
text-decoration:none}

HTML:
------------
<a class="newlink" href="somelink.html">Newlink 1</a>
<a class="newlink" href="somelink.html">Newlink 2</a>
<a class="newlink" href="somelink.html">Newlink 3</a>


--
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb/
www.alt-web.blogspot.com/



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.