lindm Posted October 29, 2009 Share Posted October 29, 2009 Is it possible to make the text [Link] appear in the right top corner of a textarea and this text would be a link? The rest of the textarea would work as normal and the linktext would be part of the textarea when submitted... Link to comment https://forums.phpfreaks.com/topic/179532-make-clickable-area-in-textarea/ Share on other sites More sharing options...
haku Posted October 30, 2009 Share Posted October 30, 2009 Can you elaborate a little? I'm not sure exactly what you mean. Link to comment https://forums.phpfreaks.com/topic/179532-make-clickable-area-in-textarea/#findComment-947541 Share on other sites More sharing options...
lindm Posted October 30, 2009 Author Share Posted October 30, 2009 Absolutely. Imagine the textarea as a square. I want a normal text link to appear in the top right corner. For instance: <a href="xxx">link</a>. This link should not be part of the textarea contents and not submitted with the form. Link to comment https://forums.phpfreaks.com/topic/179532-make-clickable-area-in-textarea/#findComment-947959 Share on other sites More sharing options...
haku Posted October 31, 2009 Share Posted October 31, 2009 Ahh, you said it would be submitted with the form. The only way I can see to do this is to use some fancy absolute positioning. <div id="box_wrapper"> <a id="floating_link">link</a> <textarea></textarea> </div> #box_wrapper { position:relative; } #floating_link { position: absolute; right:3px; //adjust this top:15px; //adjust this } Not tested, but it should be something like this. Link to comment https://forums.phpfreaks.com/topic/179532-make-clickable-area-in-textarea/#findComment-948148 Share on other sites More sharing options...
Dorky Posted November 6, 2009 Share Posted November 6, 2009 dont forget to z-index: or it may be behind the other elements. Link to comment https://forums.phpfreaks.com/topic/179532-make-clickable-area-in-textarea/#findComment-952228 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.