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
More then one style to hyperlink?
Old 10-01-2009, 01:04 AM More then one style to hyperlink?
Experienced Talker

Posts: 49
Trades: 0
Is it possible to have more then one style to an HTML hyperlink. If it is possible: why does example 1 work, but example 2 not work?

Example 1.
Code:
<a href="http://www.webmaster-talk.com/" style="color: #CC0000">change hyperlink color</a>
Example 2.
Code:
 <a href="http://www.webmaster-talk.com/" style="color: #CC0000" style="text-decoration: none; border-bottom: 1px solid #999999">change hyperlink color</a>
Thanks for any help in advance.

Last edited by DynamicFlooder; 10-01-2009 at 01:05 AM..
DynamicFlooder is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-01-2009, 07:02 AM Re: More then one style to hyperlink?
Average Talker

Posts: 24
Location: Germany
Trades: 0
Firefox only reads one style tag. (Example 2 does work with IE.)

So if you want to have more then one style to a hyperlink, just write something like this:
Code:
<a href="http://www.webmaster-talk.com/" style="color: #CC0000; text-decoration: none; border-bottom: 1px solid #999999;">change hyperlink color</a>
(Or use a separate css-file.)
__________________

Please login or register to view this content. Registration is FREE
- Register Now and Share Your Thoughts to Create Innovation and Wisdom


Please login or register to view this content. Registration is FREE
- Psychology, Philosophy and Self Development


Please login or register to view this content. Registration is FREE
- Read About All Those Things That Bug Me
Trey Walter is offline
Reply With Quote
View Public Profile Visit Trey Walter's homepage!
 
Old 10-01-2009, 07:42 AM Re: More then one style to hyperlink?
Experienced Talker

Posts: 49
Trades: 0
Perfect! Thank you!!!

Last edited by DynamicFlooder; 10-01-2009 at 07:57 AM..
DynamicFlooder is offline
Reply With Quote
View Public Profile
 
Old 10-01-2009, 08:57 AM Re: More then one style to hyperlink?
Experienced Talker

Posts: 38
Trades: 0
for SEO i would put the CSS in a seperate file - makes the coding a bit simpler
__________________
I am thewebtaylor!! Website design, SEO and marketing.


Please login or register to view this content. Registration is FREE
thewebtaylor is offline
Reply With Quote
View Public Profile
 
Old 10-01-2009, 12:23 PM Re: More then one style to hyperlink?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
And that has NOTHING to do with SEO.
__________________
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
 
Reply     « Reply to More then one style to hyperlink?
 

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.31506 seconds with 12 queries