HighDots Forums  

Where to add a style statement to a link.

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Where to add a style statement to a link. in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
FizzC
 
Posts: n/a

Default Where to add a style statement to a link. - 11-13-2004 , 07:09 PM






I am trying to attach a style to a set of navigation links. These will have a
different style from other links because they rest on a dark background. Do I
add the class statement to the A Href or can I add it to the td that holds the
links? The problem is that the links are generated dynamically and when I add
them to the code that generates the links - it blows out the page. Yet it
doesn't work when I add it to the td using the PattySite.com tutorial. Can
anyone point me to other suggestions? Thanks!


Reply With Quote
  #2  
Old   
Gary White
 
Posts: n/a

Default Re: Where to add a style statement to a link. - 11-13-2004 , 08:37 PM






FizzC wrote:

Quote:
I am trying to attach a style to a set of navigation links. These will have a
different style from other links because they rest on a dark background. Do I
add the class statement to the A Href or can I add it to the td that holds the
links?
It's much more efficient to apply it to the container, in this case
apparently a TD tag. You need to define your styles accordingly though.

To use a style applied to the container:

..navbar a:link, .navbar a:visited{
color: #ff0000;
}
..navbar a:hover{
color: #00ff00;
}
..navbar a:active{
color: #0000ff;
}

Then, apply the navbar class to your TD tag.


Gary


Reply With Quote
  #3  
Old   
FizzC
 
Posts: n/a

Default Re: Where to add a style statement to a link. - 11-13-2004 , 09:45 PM



Hey Gary - Thanks. Apparently I have been defining them wrong. Yes - attaching
to the td seemed easier by far - but my mis-definition led me down a wrong
path. I will try it tomorrow as I am 'NyQuiled' Out from a nasty cold! Thanks
again.


Reply With Quote
  #4  
Old   
FizzC
 
Posts: n/a

Default Re: Where to add a style statement to a link. - 11-13-2004 , 10:00 PM



I went a head and tried it...still no luck. My style.css looks like this:
body,table,tr,td,th { font-family: Verdana; font-size: 11px; }
..HeaderFont{ font-family: Verdana; font-size: 15px; color: #000000;
font-weight: bold; } .main a:link {color: #FFFFFF;} .main a:visited {color:
#9966CC;} .main a:hover {color: #CCCCCC;} .main a:active {color: #FF0000;}
..navbar a:link { color: FFFFFF; } .navbar a:visited { color: #FFFF00; } .navbar
a:hover { color: #FFFF00; } .navbar a:active { color: #FFFF00; } AND my
resultant html looks like this: <td width=154 height=300 valign=top
bgcolor=#333399 class='navbar'> <a
href=apparel/baseball.php>baseball</a><br> </td> Yet still no luck. Does
anything jump out at you or anybody!? Thanks. FZC


Reply With Quote
  #5  
Old   
FizzC
 
Posts: n/a

Default Re: Where to add a style statement to a link. - 11-13-2004 , 10:04 PM



For some reason - my text isn't formatting in this forum.

Reply With Quote
  #6  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Where to add a style statement to a link. - 11-14-2004 , 07:18 AM



It's the webforum you are using that is doing this. To be really cool, fire
up OutlookExpress/Entourage and come over to the hot stuff side of the NNTP
forum -

news://forums.macromedia.com/macromedia.dreamweaver

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"FizzC" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
For some reason - my text isn't formatting in this forum.



Reply With Quote
  #7  
Old   
FizzC
 
Posts: n/a

Default Re: Where to add a style statement to a link. - 11-14-2004 , 11:50 AM



Is there someway to use Entourage for newsgroups only?

I use apple mail and don't want to switch mail programs but would use Entourage to access newsgroups.

Reply With Quote
  #8  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Where to add a style statement to a link. - 11-14-2004 , 05:35 PM



Yes - you can use Entourage for newsgroups only. I rather like it for that,
and if I were using my Mac for newsgroups, I would probably use it....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"FizzC" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Is there someway to use Entourage for newsgroups only?

I use apple mail and don't want to switch mail programs but would use
Entourage to access newsgroups.



Reply With Quote
  #9  
Old   
FIzzC
 
Posts: n/a

Default Re: Where to add a style statement to a link. - 11-14-2004 , 05:55 PM



On 2004-11-14 16:35:25 -0600, "Murray *TMM*"
<forums (AT) HAHAgreat-web-sights (DOT) com> said:

Quote:
Yes - you can use Entourage for newsgroups only. I rather like it for
that, and if I were using my Mac for newsgroups, I would probably use
it....


Hey Murray - I'm here using Unison - but don't really understand
newsgroups (sorry) - but will learn.

Anyway - how was this thread (my thread) here? Does this mirror the
forum? Am I just looking at the forum in a different way?

Thanks! FizzC

Anyway - is it worth the money to buy Unison? Or figure out how to get
Entourage to do newsgroups without the email part?

Lastly - is it smart to expose my email to the world in one of these?



Reply With Quote
  #10  
Old   
Gary White
 
Posts: n/a

Default Re: Where to add a style statement to a link. - 11-15-2004 , 01:16 AM



FizzC wrote:

Quote:
I went a head and tried it...still no luck. My style.css looks like this:
body,table,tr,td,th { font-family: Verdana; font-size: 11px; }
.HeaderFont{ font-family: Verdana; font-size: 15px; color: #000000;
font-weight: bold; } .main a:link {color: #FFFFFF;} .main a:visited {color:
#9966CC;} .main a:hover {color: #CCCCCC;} .main a:active {color: #FF0000;}
.navbar a:link { color: FFFFFF; } .navbar a:visited { color: #FFFF00; } .navbar
a:hover { color: #FFFF00; } .navbar a:active { color: #FFFF00; } AND my
resultant html looks like this: <td width=154 height=300 valign=top
bgcolor=#333399 class='navbar'> <a
href=apparel/baseball.php>baseball</a><br> </td> Yet still no luck. Does
anything jump out at you or anybody!? Thanks. FZC
As you can see, the web forum makes a real mess of your post. It's late
here now. I'll try to see if I can make sense of it tomorrow.


Gary


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.