Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Links With Different Colours On Same Page
Old 02-13-2007, 02:45 PM Links With Different Colours On Same Page
Skilled Talker

Posts: 98
Name: james belcher
Trades: 0
Hi All

Is it possible to have links on the same page with different colours. For example I have links in a table at the top of the page with a black background so want to use white links, further down the left of the page I have more info below the link headings and think it will be good to have these as links as well. Because the background is a sort of blue I want the links to be black.

Im using Dreamweaver and the page properties settings means that all the links need to be one colour. Is there a way around this?

Also while im asking simple questions how do I make the links down the left of the page link but not have the line underneath?

Thanks

James B

Last edited by James B; 02-13-2007 at 02:47 PM..
James B is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-13-2007, 02:48 PM Re: Links With Different Colours On Same Page
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
Is it possible to have links on the same page with different colours
Yes, if you use CSS you can do this with a class that specifies the color you want. Then you assign that class to the links you want to change.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-13-2007, 02:55 PM Re: Links With Different Colours On Same Page
Skilled Talker

Posts: 98
Name: james belcher
Trades: 0
Hi

thanks for the reply, its good news but also bad as I know have to go and learn some CSS. I knew the time would come but why does it have to be now.


I think I will have to go with the same colours then work out the CSS at a later date. You dont know any good online tutorials before I spend the next few days looking?

Thanks

Regards

James B
James B is offline
Reply With Quote
View Public Profile
 
Old 02-13-2007, 03:14 PM Re: Links With Different Colours On Same Page
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
yes... www.w3schools.com
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-13-2007, 08:19 PM Re: Links With Different Colours On Same Page
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
James, have a look at the link LadynRed posted. Having links be two different colors is pretty easy and will make a good introduction to css.

css can get tricky sometimes when you attempt to use it exclusively to layout a site, but the basics are easy to learn and begin using.

And you know if you have any problems we'll be happy to help.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 02-13-2007, 09:16 PM Re: Links With Different Colours On Same Page
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
CSS stands for cascading style sheets ... the cascading part you can get to in time, but styles, like in Word, are a great tool for a lot of different things on the web. They can help you keep all your pages looking consistent even on a huge site, it can make your job easier ( you could use raw html, as in <font color="red">some text</font>, around your links ) because there's less typing and less complex code. They can even save you bandwidth.

So create a new file, and call it styles.css ( or something else if you have a better imagination ), and put something like this in it:

a:link { text-decoration: none; }
.goodLink { color: green; }
.badLink { color: red; text-decoration: strikethrough; }

Then in your page, you want to use syntax like:

<a href="#" class="goodLink">This is a good link</a>

You still want to read up and learn what can and can't be done, and the link LadynRed provided is a great resource.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 02-17-2007, 01:03 AM Re: Links With Different Colours On Same Page
houdini987's Avatar
Extreme Talker

Posts: 155
Name: Brian Trudeau
Location: Enfield, CT
Trades: 2
Hi James, I was going to put down what to do in css, but Forest has it down pretty perfect. So look closely at his message.

CSS can be a little weird but like the other poster said, getting certain links to show up with different colors is a good way to get your feet wet. I'm still fairly new to it but I have the general concept down now.

Make sure once you have your .css file created and are referencing the classes in your code, that you're also referencing the .css file somewhere. For example:
<linkhref="/portals/_default/skins/xdscnov06/XDSCNov06_Forest.css"rel="stylesheet"type="text/css">
__________________
Trudeau Consulting LLC

Please login or register to view this content. Registration is FREE
houdini987 is offline
Reply With Quote
View Public Profile Visit houdini987's homepage!
 
Reply     « Reply to Links With Different Colours On Same Page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28827 seconds with 12 queries