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... Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.