Topic: Applying hyperlink to a css style (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=24012" title="Pages that link to Topic: Applying hyperlink to a css style (Page 1 of 1)" rel="nofollow" >Topic: Applying hyperlink to a css style <span class="small">(Page 1 of 1)</span>\

 
elvisedge
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jul 2003

posted posted 11-12-2004 07:08

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

posted posted 11-12-2004 07:14

no.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 11-12-2004 10:17

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

posted posted 11-12-2004 15:52

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

posted posted 11-15-2004 01:17

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