<!DOCTYPE html> <html> <head> <style type="text/css"> body:first-letter { float: right; } </style> <script type="text/javascript"> function boom() { var t = document.body.firstChild; var se = document.getElementById("se"); se.appendChild(t); // !!! document.body.appendChild(se); se.appendChild(document.createTextNode(" ")); } </script> </head> <body onload="boom();">ﺷ <div id="se" style="display: none;"></div></body> </html>