Topic: Applying hyperlink to a css style Pages that link to <a href="https://ozoneasylum.com/backlink?for=24012" title="Pages that link to Topic: Applying hyperlink to a css style" rel="nofollow" >Topic: Applying hyperlink to a css style\

 
Author Thread
elvisedge
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jul 2003

IP logged posted posted 11-12-2004 07:08 Edit Quote

if a part of text is selected with a class style eg <p class="typefooter2"> is it possible that it has a default hyperlink attached to it?

Basically, if i have some text on a page, eg. 'Back to Top' and it has a class style applied to it (as above) can it automatically be a hyperlink, eg. #top


.typefooter2 {
font-size: 9px;
font-family: Arial, helvetica, sans-serif;
color: #0098BE;
text-align : right;
}

ANY help would be appreciated!!

JKMabry
Maniac (V) Inmate

From: raht cheah
Insane since: Aug 2000

IP logged posted posted 11-12-2004 07:14 Edit Quote

no.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

IP logged posted posted 11-12-2004 10:17 Edit Quote

elvisedge: CSS only affects the presentation layer of the pages, while what you want lays in the behavioral or even structural layer. Why don't you simply do: <p class="typefooter2"><a href="#top" alt=""> ... </a></p> ?

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 11-12-2004 15:52 Edit Quote

It is important to reiterate Poi's point.

CSS exists for one purpose, and one purpose only: STYLE. As in visual presentation.

Links are a matter of structure. HTML exists for the purpose of structure - that's what it is...a set of specifically defiend tags to define the structure of a document.

So no, you can't - and even if you could, it would be extremely unwise.

elvisedge
Nervous Wreck (II) Inmate

From:
Insane since: Jul 2003

IP logged posted posted 11-15-2004 01:17 Edit Quote

Thanks very much, just had to check.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu