-
move text
hi ,
can anyone tell me how to move a text to center of the page that means when i click on any text it should come to center of the page (the text can be left side top of the page or at the bottom of the page no matter whr it is but when it is clicked it should come to center of the page). is it possible, if it is possible plz help me out
-
-
If you meant html node holding a static text content, it is. That is, you can. But if it is a text-text content inside a text node string - it isn't. Not without dynamically editing it and using a process that will require several unreliable and complicated steps of selecting a range of a clicked text inserting wrapping that range with some html node created on the fly, extract and calculate the actual center position on the page, selecting the node, edititing few css attribute properties according to your calculation results and finally apply position: absolute, to the text portion selected element, not to mention that you should hod some reference to the element created so you will be able to destroy it when when clicking on some other text and so on.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks