Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Need some quick HTML help please

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
DS1 Donating Member (1000+ posts) Send PM | Profile | Ignore Wed May-19-04 04:39 PM
Original message
Need some quick HTML help please
I've been coding for days and my brain is fried.

What style sheet tags can I use to make some hyperlinks on my page white, others nothing, and others a different color? I know, fugly, but customer gets what customer wants.

Any help would be greatly appreciated.
Printer Friendly | Permalink |  | Top
ixion Donating Member (1000+ posts) Send PM | Profile | Ignore Wed May-19-04 04:44 PM
Response to Original message
1. use a class attribute in your <a> tag
Edited on Wed May-19-04 04:46 PM by ixion
<a href='foo.html' class='onStyle' >

if you put an id in there you can also grab it and recolor based on some event...

<a id='foohref' href='foo.html' class='onStyle' >

fooEle = document.getElementById('foohref');

fooEle.style...

from there you have access to the style object, and can alter it any way you like.

hope this helps.

Printer Friendly | Permalink |  | Top
 
patriotvoice Donating Member (1000+ posts) Send PM | Profile | Ignore Wed May-19-04 04:44 PM
Response to Original message
2. sample
[html]
  [head]
    [style type='text/css']
    a.myclass {
        color: #F0F;
    }
    [/style]
  [/head]
  [body]
  [a class="myclass"
href="http://www.example.com/"]foo[/a]
  [/body]
[/html]
Printer Friendly | Permalink |  | Top
 
shockingelk Donating Member (1000+ posts) Send PM | Profile | Ignore Wed May-19-04 04:45 PM
Response to Original message
3. Here
a:link { text-decoration : none ;
color : #9900ff; }
a:visited { text-decoration : none ;
color : #6600dd; }
a:hover { text-decoration : underline ;
color : #9900ff; }
a.white:link { text-decoration : none ;
color : #fffff; }
a.white:visited { text-decoration : none ;
color : #fffff; }
a.white:hover { text-decoration : underline ;
color : #ffffff; }

<a href="#"> regular link
<a class="white" href="#"> white link
Printer Friendly | Permalink |  | Top
 
DS1 Donating Member (1000+ posts) Send PM | Profile | Ignore Wed May-19-04 05:06 PM
Response to Reply #3
4. bingo! Thanks everyone!
shockingelk as provided me with precisely what I'm looking for, not that the other solutions aren't just as valid

:toast:
Printer Friendly | Permalink |  | Top
 
MsUnderstood Donating Member (1000+ posts) Send PM | Profile | Ignore Wed May-19-04 05:27 PM
Response to Reply #4
5. Okay then
Shockingelk gets the points. Admin please award. . .Oh wait this is not experts exchange. . .
Printer Friendly | Permalink |  | Top
 
DS1 Donating Member (1000+ posts) Send PM | Profile | Ignore Wed May-19-04 05:29 PM
Response to Reply #5
6. No, it's not experts exchange, but it is free
:shrug:
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Sat May 04th 2024, 08:50 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC