retronetro — 2010-04-12T11:19:45-04:00 — #1
Is it possible to add a clickable link using the content property
content: "Some Text (a link)";
xhtmlcoder — 2010-04-12T11:38:58-04:00 — #2
I wouldn't have thought so because it wouldn't generate actual markup. I assume you mean - with CSS only - generate a type of pseudo hyperlink rather than a clickable area.
stomme_poes — 2010-04-12T13:32:09-04:00 — #3
I've always wondered if you could fool the browser by manually writing out the < and >'s as a string (content can only put out a string). I mean, the browser does convert Unicode entiities...
retronetro — 2010-04-12T18:32:01-04:00 — #4
Thanks to both of you.
luki_be — 2010-04-12T18:48:07-04:00 — #5
You can't. I tried it once and couldn't get it to work....
ryanreese — 2010-04-12T21:38:50-04:00 — #6
Yes the content property generates (in your case) strings. Thus as others have said, impossible.
xhtmlcoder — 2010-04-13T09:16:08-04:00 — #7
No problem. I forgot to add it would possibly be a security risk (or certainly abused) if it were allowed to generate such mapped Document tree values (if that's the correct phrase), etc.
retronetro — 2010-04-13T09:20:35-04:00 — #8
This was just something I was adding to my user stylesheet and thought of a good place I could add a link on a particular website I frequent, but alas. It's a no go.
ryanreese — 2010-04-13T12:36:56-04:00 — #9
It would indeed quite useful and I wish that it would accept more then strings. Aka HTML. Though I suppose that woiuld be a security risk because if HTML couild be inserted via CSS..I'm sure somebody could find a security hole in that.
I'm just thinking out loud right now lol
stomme_poes — 2010-04-13T14:59:00-04:00 — #10
ryanreese — 2010-04-13T16:28:30-04:00 — #11
. You of all people Stomme :p.
stomme_poes — 2010-04-14T03:03:51-04:00 — #12
Are you accusing me of being a user?? I didn't inhale, man!