6, July 2008

Coloring Link Question - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Design and Layout  >  Web Page Design  >  HTML & XHTML (Moderator: Meth0d)
Topic: Coloring Link Question
« previous next »
Pages: [1] Print

Author Topic: Coloring Link Question  (Read 1949 times)
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« on: May 08, 2006, 01:44:30 AM »

I'm am trying to color my links in the <div> style. The script I'm using is this:

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
« Last Edit: May 08, 2006, 01:46:30 AM by Silent77 »
Community Supporter ?
What's HTML?
****
Gender: Male
Posts: 493
4892 credits
Members referred : 0


www.demonhale.com


« Reply #1 on: May 08, 2006, 03:22:09 AM »

<a href="link here" style="color:#f03420;">

something like that, you can also assign colors for link active and hover on your css...

http://www.demonhale.com Visit through proxy , Just Visit...
Partners:
http://www.resume-fix.com Visit through proxy , Free Resumes

Last blog : Slowly Getting Back
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« Reply #2 on: May 08, 2006, 03:34:34 AM »

Yeah, I tried CSS and it errors the file becuase of the way the script is set up. I'll have to try the style on the <a href> style

thanks
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6272
38458 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: May 08, 2006, 09:16:30 AM »

Try this:

in your header:
Code:
div.someName a {
  color:red;
}

and in your html:
Code:
<div class="someName"><a href="http://www.webdigity.com">Webmaster forums</a></div>


Last blog : 4th of July Lottery from TemplateMonster.com
aka J Love
Moderator
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #4 on: May 10, 2006, 03:33:01 AM »

Try this:

in your header:
Code:
div.someName a {
color:red;
}

and in your html:
Code:
<div class="someName"><a href="http://www.webdigity.com">Webmaster forums</a></div>

this is the correct way to do it by the manual,i recommend doing it this way for valid html

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6272
38458 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: May 10, 2006, 09:11:49 AM »



this is the correct way to do it by the manual,i recommend doing it this way for valid html

Is there a html/CSS manual?


Last blog : 4th of July Lottery from TemplateMonster.com
Community Supporter ?
What's HTML?
****
Gender: Male
Posts: 493
4892 credits
Members referred : 0


www.demonhale.com


« Reply #6 on: Jun 06, 2006, 09:25:50 AM »

go to w3c.org ... I think all gudelines about htm and css are there...

http://www.demonhale.com Visit through proxy , Just Visit...
Partners:
http://www.resume-fix.com Visit through proxy , Free Resumes

Last blog : Slowly Getting Back
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6272
38458 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Jun 06, 2006, 10:14:48 AM »

go to w3c.org ... I think all gudelines about htm and css are there...
I was joking...


Last blog : 4th of July Lottery from TemplateMonster.com
Community Supporter ?
What's HTML?
****
Gender: Male
Posts: 493
4892 credits
Members referred : 0


www.demonhale.com


« Reply #8 on: Jun 07, 2006, 08:28:41 AM »

Quote
I was joking...
for the benefit of those who are not... LOL!
« Last Edit: Jun 07, 2006, 12:24:53 PM by designer »

http://www.demonhale.com Visit through proxy , Just Visit...
Partners:
http://www.resume-fix.com Visit through proxy , Free Resumes

Last blog : Slowly Getting Back
aka J Love
Moderator
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #9 on: Sep 14, 2006, 07:58:06 PM »

go to w3c.org ... I think all gudelines about htm and css are there...
I was joking...

lol i think Olaf is pointing out html and css is to simple to require a manual

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #10 on: Sep 14, 2006, 08:13:40 PM »

We all started out where we didn't know anything about CSS...

Additionaly: instead of just the 'a' in
Code:
a {
  color:red;
}

you can use a:link, a:visited, a:hover and a:active letting you control how the link will look when: not visited, visited, hovering your mouse over it and clicking it.



Last blog : Are You Stumbling Yet?
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2440
Tags : css html w3c Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Design and Layout  >  Web Page Design  >  HTML & XHTML (Moderator: Meth0d)
Topic: Coloring Link Question
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 06, 2008, 12:47:44 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.533
Total Topics: 7.344
Total Members: 3.647
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: pawan

13 Guests, 4 Users online :

13 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.