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
Link Coloring Question
Old 05-07-2006, 06:46 PM Link Coloring Question
Silent77's Avatar
Ultra Talker

Posts: 269
Name: Silent
Location: Ohio
Trades: 0
Hello,
I'm am trying to color my links in the <div> style. The script I'm using is this:

HTML Code:
<div style="text-align:center;border: 1px solid #A9B8C2; color: #000000 !important;background-color: #C0C9D2;font-size: 11px;-moz-border-radius: 10px;">

I'm not sure how to apply link colors in <div> style's so could someone help me with this?

Thanks
__________________
Firefox
rediscover the web

Please login or register to view this content. Registration is FREE
Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
 
Register now for full access!
Old 05-08-2006, 01:17 AM Re: Link Coloring Question
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
<div style="text-align:center;border: 1px solid #A9B8C2; color: #000000 !important;background-color: #C0C9D2;font-size: 11px;-moz-border-radius: 10px;">


It would be easier if you put the style info either in the head or better yet in a seperate css file. This gives you a little more control, and makes your code a little more versatile.


You could do something like this:

#divname {text-align:center;border: 1px solid #A9B8C2; color: #000000 !important;background-color: #C0C9D2;font-size: 11px;-moz-border-radius: 10px;}

#divname a:link {color: #0000FF;}


--
Notice that you can control the a:link attributes for each div if you give the div an id name.

<div id="divname">
content
</div
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 05-09-2006, 07:01 PM Re: Link Coloring Question
Novice Talker

Posts: 13
Location: Vancouver, BC
Trades: 0
it's because the <a> tag's color setting overrides the <div> color. I prefer ChipJohns's solution. But if you really need to use inline style, put the style attribute inside the <a> tag

HTML Code:
<div style="...">
<a style="color:#000000;" href="...">link here</a>
</div>
__________________
Visit my startup - Tooldle.com:
Please login or register to view this content. Registration is FREE
gumlor is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Link Coloring Question
 

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