rfhnjirf,
<style type="text/css">
#content.right .par, #content.right h2{
text-align: right;
}
</style>
<script>
function position(){
document.getElementById("content").classList.add("right")}
var virzag=document.getElementById("right");
virzag.onclick = position;
</script>