HighDots Forums  

2 link colors?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss 2 link colors? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ghost zero
 
Posts: n/a

Default 2 link colors? - 06-27-2004 , 04:38 PM






Is there a way to have 2 different link colors on a page? I want yellow as the
link color on the gray navigation bar on the right. But I want the links to be
blue in the white area to the left. Is this possible? Perhaps through some
CSS setting? Thanks.


Reply With Quote
  #2  
Old   
Al Sparber- PVII
 
Posts: n/a

Default Re: 2 link colors? - 06-27-2004 , 04:47 PM






Our CSS Link Styles 2004 tutorial will help you:
http://www.projectseven.com/tutorials/css/pseudoclasses/index.htm

--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/





Reply With Quote
  #3  
Old   
ghost zero
 
Posts: n/a

Default Re: 2 link colors? - 06-27-2004 , 05:39 PM



Sorry, but I'm in kind of a hurry right now. I don't have time to do a CSS
tutorial. Can you please tell me how to modify the existing code to work? Or
how I can do it via DreamWeaver2004 MX's interface? Thanks!


Reply With Quote
  #4  
Old   
John Waller
 
Posts: n/a

Default Re: 2 link colors? - 06-27-2004 , 05:52 PM



Quote:
Sorry, but I'm in kind of a hurry right now. I don't have time to do
a CSS tutorial. Can you please tell me how to modify the existing
code to work? Or how I can do it via DreamWeaver2004 MX's interface?
Thanks!
It takes 10 mins to learn the principles from the tutorial then about 1
minute to set your classes up the way you want them.

It would take longer to give you a step-by-step on how to modify your
existing code.

:-)

--
Regards

John Waller




Reply With Quote
  #5  
Old   
kim
 
Posts: n/a

Default Re: 2 link colors? - 06-27-2004 , 05:57 PM



Quote:
Sorry, but I'm in kind of a hurry right now. I don't have time to do
a CSS tutorial

This is funny... you don't have the time to read for 10 mins but it's OK
for you if someone corrected your code.

Quote:
Can you please tell me how to modify the existing code to work? Or
how I can do it via DreamWeaver2004 MX's interface? Thanks!

Sure... make some pseudoclasses through the MX04 css panel )

HTH
Kim



ghost zero wrote:

Quote:
Sorry, but I'm in kind of a hurry right now. I don't have time to do a CSS
tutorial.


Reply With Quote
  #6  
Old   
ghost zero
 
Posts: n/a

Default Re: 2 link colors? - 06-27-2004 , 06:20 PM



Sorry, but I'm not a hand coder (just a WYSIWYG designer) and it'll take me
longer than 10 mins to read and comprehend that tutorial. Plus that tutorial
is several pages! Also, I'm not asking for a hover link color change effect.
I'm asking to have two default link colors on the same page. Please, I need to
get a project done soon! Thanks.


Reply With Quote
  #7  
Old   
Al Sparber- PVII
 
Posts: n/a

Default Re: 2 link colors? - 06-27-2004 , 06:27 PM



ghost zero wrote:
Quote:
Sorry, but I'm not a hand coder (just a WYSIWYG designer) and it'll
take me longer than 10 mins to read and comprehend that tutorial.
Plus that tutorial is several pages! Also, I'm not asking for a
hover link color change effect. I'm asking to have two default link
colors on the same page. Please, I need to get a project done soon!
Thanks.
You could have read the whole thing :-). If you look at the bottom of
the tutorial's starting page, you'll see some links.

PVII Link Style Series:
CSS Link Styles- Defined
Next: Creating the Default Link Selectors
Creating Multiple CSS Link Styles- Overview
Creating Multiple CSS Link Styles- Preparatory Steps & Test Page
Creation
Creating Multiple CSS Link Styles- Creating the 2nd & 3rd Link Styles

I would try any of the ones that begin with "Creating Multiple".

This has nothing to do with hand coding.


--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/



Reply With Quote
  #8  
Old   
ghost zero
 
Posts: n/a

Default Re: 2 link colors? - 06-27-2004 , 07:08 PM



Originally posted by: Newsgroup User
ghost zero wrote:
Quote:
Sorry, but I'm not a hand coder (just a WYSIWYG designer) and it'll
take me longer than 10 mins to read and comprehend that tutorial.
Plus that tutorial is several pages! Also, I'm not asking for a
hover link color change effect. I'm asking to have two default link
colors on the same page. Please, I need to get a project done soon!
Thanks.
You could have read the whole thing :-). If you look at the bottom of
the tutorial's starting page, you'll see some links.

PVII Link Style Series:
CSS Link Styles- Defined
Next: Creating the Default Link Selectors
Creating Multiple CSS Link Styles- Overview
Creating Multiple CSS Link Styles- Preparatory Steps & Test Page
Creation
Creating Multiple CSS Link Styles- Creating the 2nd & 3rd Link Styles

I would try any of the ones that begin with "Creating Multiple".

This has nothing to do with hand coding.


--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/


How do you know the answer is even there?? : \ Is it really that hard to tell
me what the code is...all you hardcore pros out there? PLEASE.




Reply With Quote
  #9  
Old   
Al Sparber- PVII
 
Posts: n/a

Default Re: 2 link colors? - 06-27-2004 , 07:38 PM



ghost zero wrote:

Quote:
How do you know the answer is even there?? : \ Is it really that
hard to tell me what the code is...all you hardcore pros out there?
PLEASE.
I know because I wrote it. Here is the short answer - which is all I
have time for.

for two link styles, use a descendant selector:

..mylinks a:link {properties and values in here}
..mylinks a:visited {properties and values in here}
..mylinks a:hover, .mylinks a:active {properties and values in here}

..mylinks2 a:link {properties and values in here}
..mylinks2 a:visited {properties and values in here}
..mylinks2 a:hover, .mylinks a:active {properties and values in here}


In markup:

<div class="mylinks">
All links in this area styled according to first link style CSS class
".mylinks"
</div>

<div class="mylinks2">
All links in this area styled according to second link style CSS class
".mylinks2"
</div>


--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/






Reply With Quote
  #10  
Old   
Steel_Cat
 
Posts: n/a

Default Re: 2 link colors? - 06-27-2004 , 08:08 PM



the least handcoding you could do to accomplish this would be to put the line
"javascript:;" in the link section of the properties panel when the text is
selected. In this way you can set rolloever colors, link properties, and the
original color of the text (via "onLoad" event if necesary). Hope this made
sense, I could clarify more if needed. Good luck!


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.