2 replies [Last post]
EH_27
Offline
newbie
Last seen: 16 years 24 weeks ago
Joined: 2004-06-17
Posts: 2
Points: 0

Does anyone know if you can create a class in CSS that will link automatically to something?

I am trying to create a class that people can select to create a Back to Top Link.

.TopLink { text-align: right; href: #; a-href: #; }

Any ideas???

co2
co2's picture
Offline
Leader
UK
Last seen: 12 years 33 weeks ago
UK
Joined: 2003-09-17
Posts: 721
Points: 0

CSS - Top link class

Nope, 'fraid not. CSS is for style only, not content. You will have to rely on links/anchors in your (X)HTML.

Smile

The next sentence is true. The previous sentence is false. Discuss...

EH_27
Offline
newbie
Last seen: 16 years 24 weeks ago
Joined: 2004-06-17
Posts: 2
Points: 0

CSS - Top link class

I suspected that was the case.

Thanks anyway.