rsahai91
rsahai91

Reputation: 447

How to make the click logo appear without a href in css/html?

Basically I want to make normal text clickable, but with that click mouse logo popping up! I can make the text clickable using 'onclick' but this doesn't give the text that hover like click logo.

Sorry for my noobiness

Upvotes: 0

Views: 320

Answers (2)

Amy
Amy

Reputation: 7466

Use CSS property cursor: pointer; to achieve desired result.

Edit: If you want to apply other styles when the user hovers over the text, then add selector to include pseudo selector :hover to style during mouse over.

Upvotes: 1

ktm5124
ktm5124

Reputation: 12123

You simply set the cursor property on the parent element.

span { cursor: pointer; }

working example: http://jsfiddle.net/XxrMM/

Upvotes: 0

Related Questions