PC Review


Reply
Thread Tools Rate Thread

Creating addition Hyperlink classes

 
 
=?Utf-8?B?ZmlyZXN0b3JtMTk1NA==?=
Guest
Posts: n/a
 
      29th Sep 2007
I have no problem in re-formatting the normal a hyperlink tags. However, if I
want to add a link to a separate part of the site with different
characteristics, how can I create a different class of hyperlink, a pseudo
class I think it is called?
 
Reply With Quote
 
 
 
 
Stefan B Rusynko
Guest
Posts: n/a
 
      29th Sep 2007
Create a pseudo style in the head section for the links
- "white" below can be any name you wants

<style type="text/css">
a.white {color: white; text-decoration: none}
a.white:link {color: white; text-decoration: none}
a.white:visited {color: white; text-decoration: none}
a.white:hover {color: white; text-decoration: underline}
a.white:active {color: white; text-decoration: none}
</style>

And apply the class to the links in the page
<a href="yourlink.htm" class="white">


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


"firestorm1954" <(E-Mail Removed)> wrote in message
news:9CD6FBDC-9CFF-4CB5-8331-(E-Mail Removed)...
|I have no problem in re-formatting the normal a hyperlink tags. However, if I
| want to add a link to a separate part of the site with different
| characteristics, how can I create a different class of hyperlink, a pseudo
| class I think it is called?


 
Reply With Quote
 
=?Utf-8?B?ZmlyZXN0b3JtMTk1NA==?=
Guest
Posts: n/a
 
      29th Sep 2007
Splendid - thanks

"Stefan B Rusynko" wrote:

> Create a pseudo style in the head section for the links
> - "white" below can be any name you wants
>
> <style type="text/css">
> a.white {color: white; text-decoration: none}
> a.white:link {color: white; text-decoration: none}
> a.white:visited {color: white; text-decoration: none}
> a.white:hover {color: white; text-decoration: underline}
> a.white:active {color: white; text-decoration: none}
> </style>
>
> And apply the class to the links in the page
> <a href="yourlink.htm" class="white">
>
>
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> _____________________________________________
>
>
> "firestorm1954" <(E-Mail Removed)> wrote in message
> news:9CD6FBDC-9CFF-4CB5-8331-(E-Mail Removed)...
> |I have no problem in re-formatting the normal a hyperlink tags. However, if I
> | want to add a link to a separate part of the site with different
> | characteristics, how can I create a different class of hyperlink, a pseudo
> | class I think it is called?
>
>
>

 
Reply With Quote
 
Murray
Guest
Posts: n/a
 
      30th Sep 2007
Consider a more efficient way to do this with descendent selectors -

<div id="whatever">
<a href="page.html">page</a>
</div>

#whatever a { ... }

That way you don't have to explicitly style each individual link.

--
Murray
--------------
MVP ExpressionWeb


"firestorm1954" <(E-Mail Removed)> wrote in message
news:09FE9C66-CAED-4005-BB62-(E-Mail Removed)...
> Splendid - thanks
>
> "Stefan B Rusynko" wrote:
>
>> Create a pseudo style in the head section for the links
>> - "white" below can be any name you wants
>>
>> <style type="text/css">
>> a.white {color: white; text-decoration: none}
>> a.white:link {color: white; text-decoration: none}
>> a.white:visited {color: white; text-decoration: none}
>> a.white:hover {color: white; text-decoration: underline}
>> a.white:active {color: white; text-decoration: none}
>> </style>
>>
>> And apply the class to the links in the page
>> <a href="yourlink.htm" class="white">
>>
>>
>> --
>>
>> _____________________________________________
>> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
>> "Warning - Using the F1 Key will not break anything!" (-;
>> _____________________________________________
>>
>>
>> "firestorm1954" <(E-Mail Removed)> wrote in
>> message
>> news:9CD6FBDC-9CFF-4CB5-8331-(E-Mail Removed)...
>> |I have no problem in re-formatting the normal a hyperlink tags. However,
>> if I
>> | want to add a link to a separate part of the site with different
>> | characteristics, how can I create a different class of hyperlink, a
>> pseudo
>> | class I think it is called?
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink addition - finding a date when something is linked? Tracys49 Microsoft Frontpage 1 12th Dec 2009 02:20 AM
Forced addition of Outlook Connector creating BCM errors Rhineg Microsoft Outlook BCM 0 27th Aug 2009 03:36 PM
Creating Classes =?Utf-8?B?SGVybWFuIEpvbmVz?= Microsoft Dot NET 1 1st Jun 2006 12:22 PM
Creating an exe file for toolbar button addition to IE. Sujoan Windows XP Internet Explorer 2 15th Feb 2006 01:31 PM
creating com classes from .NET vipin Microsoft C# .NET 3 13th Jan 2004 08:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:48 AM.