Direction rtl to all page
I have a long html page.
I want to change the direction of all text/tables to rtl.
How can i do that to all page instead of to change to any element the direction to rtl?
Thanks.
javascript html css
add a comment |
I have a long html page.
I want to change the direction of all text/tables to rtl.
How can i do that to all page instead of to change to any element the direction to rtl?
Thanks.
javascript html css
1
<body dir="rtl">
– rejo
Jul 13 '16 at 8:43
How can i do that with javascript? i can add attribute to body element?
– CSharpBeginner
Jul 13 '16 at 8:46
1
Yes.document.body.setAttribute('dir', 'rtl')
– evolutionxbox
Jul 13 '16 at 8:52
add a comment |
I have a long html page.
I want to change the direction of all text/tables to rtl.
How can i do that to all page instead of to change to any element the direction to rtl?
Thanks.
javascript html css
I have a long html page.
I want to change the direction of all text/tables to rtl.
How can i do that to all page instead of to change to any element the direction to rtl?
Thanks.
javascript html css
javascript html css
asked Jul 13 '16 at 8:40
CSharpBeginner
1661212
1661212
1
<body dir="rtl">
– rejo
Jul 13 '16 at 8:43
How can i do that with javascript? i can add attribute to body element?
– CSharpBeginner
Jul 13 '16 at 8:46
1
Yes.document.body.setAttribute('dir', 'rtl')
– evolutionxbox
Jul 13 '16 at 8:52
add a comment |
1
<body dir="rtl">
– rejo
Jul 13 '16 at 8:43
How can i do that with javascript? i can add attribute to body element?
– CSharpBeginner
Jul 13 '16 at 8:46
1
Yes.document.body.setAttribute('dir', 'rtl')
– evolutionxbox
Jul 13 '16 at 8:52
1
1
<body dir="rtl">
– rejo
Jul 13 '16 at 8:43
<body dir="rtl">
– rejo
Jul 13 '16 at 8:43
How can i do that with javascript? i can add attribute to body element?
– CSharpBeginner
Jul 13 '16 at 8:46
How can i do that with javascript? i can add attribute to body element?
– CSharpBeginner
Jul 13 '16 at 8:46
1
1
Yes.
document.body.setAttribute('dir', 'rtl')– evolutionxbox
Jul 13 '16 at 8:52
Yes.
document.body.setAttribute('dir', 'rtl')– evolutionxbox
Jul 13 '16 at 8:52
add a comment |
5 Answers
5
active
oldest
votes
Using CSS:
*
direction: rtl;
Using JavaScript:
var children = document.children;
var i;
for (i = 0; i < children.length; i++)
children[i].style.direction = "rtl";
OR
document.body.style.direction = "rtl";
OR ( from evolutionxbox comment )
document.body.setAttribute('dir', 'rtl')
Using JQuery (even if you are not asking about):
$("html").children().css("direction","rtl");
Inline Coding:
<body dir="rtl">
OR
<html dir="rtl">
3
Ordocument.body.setAttribute('dir', 'rtl')
– evolutionxbox
Jul 13 '16 at 8:57
Thanks, its possible that document.children is undefined?
– CSharpBeginner
Jul 13 '16 at 9:13
@CSharpBeginner No.document.childrenreturns at least one item (body- because it is automatically added by the web browser event if it doesn't exist in your code).
– NETCreator Hosting - WebDesign
Jul 13 '16 at 10:16
add a comment |
The direction property in CSS sets the direction of of content flow within a block-level element. This applies to text, inline, and inline-block elements. It also sets the default alignment of text and the direction that table cells flow within a table row.you can use
body
direction: rtl; /* Right to Left */
or There is an HTML attribute for setting the direction as well
<body dir="rtl">
It is recommended you use the HTML attribute, as that will work even if CSS fails or doesn't affect the page for any reason.
add a comment |
You can use jQuery.
$('body').children().css('direciton','rtl');
Or use pure Javascript:
document.getElementsByTagName('Body')[0].style.direction = "rtl"
amm..its possible that i have no <body> tag in the .html page?
– CSharpBeginner
Jul 13 '16 at 8:49
I don't think so. anyway, you can use any element (like Div container) and use the same code....
– Gil Lupu
Jul 13 '16 at 8:50
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
@CSharpBeginner - the body tag will be added automatically by the browser if it is not present in the HTML.
– evolutionxbox
Jul 13 '16 at 8:58
You can peform the same with pure Javascrip:document.getElementsByTagName('Body')[0].style.direction = "rtl"
– Gil Lupu
Jul 13 '16 at 8:58
add a comment |
using css:
html *
direction: rtl;
using jQuery:
$('html').children().css('direction','rtl');
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
@evolutionxbox but i have added css solution first.. jquery is aditional
– Anuj Khandelwal
Jul 13 '16 at 8:54
That's fine, but please include a non-jquery JS solution. As that is what the OP has asked for. "How can i do that with javascript? i can add attribute to body element?"
– evolutionxbox
Jul 13 '16 at 8:56
add a comment |
Javascript
document.body.style.direction= "rtl";
HTML
<body dir="rtl">
1
Ordocument.body.setAttribute('dir', 'rtl')
– evolutionxbox
Jul 13 '16 at 8:56
Yes ,we can do this
– rejo
Jul 13 '16 at 8:57
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f38346671%2fdirection-rtl-to-all-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
Using CSS:
*
direction: rtl;
Using JavaScript:
var children = document.children;
var i;
for (i = 0; i < children.length; i++)
children[i].style.direction = "rtl";
OR
document.body.style.direction = "rtl";
OR ( from evolutionxbox comment )
document.body.setAttribute('dir', 'rtl')
Using JQuery (even if you are not asking about):
$("html").children().css("direction","rtl");
Inline Coding:
<body dir="rtl">
OR
<html dir="rtl">
3
Ordocument.body.setAttribute('dir', 'rtl')
– evolutionxbox
Jul 13 '16 at 8:57
Thanks, its possible that document.children is undefined?
– CSharpBeginner
Jul 13 '16 at 9:13
@CSharpBeginner No.document.childrenreturns at least one item (body- because it is automatically added by the web browser event if it doesn't exist in your code).
– NETCreator Hosting - WebDesign
Jul 13 '16 at 10:16
add a comment |
Using CSS:
*
direction: rtl;
Using JavaScript:
var children = document.children;
var i;
for (i = 0; i < children.length; i++)
children[i].style.direction = "rtl";
OR
document.body.style.direction = "rtl";
OR ( from evolutionxbox comment )
document.body.setAttribute('dir', 'rtl')
Using JQuery (even if you are not asking about):
$("html").children().css("direction","rtl");
Inline Coding:
<body dir="rtl">
OR
<html dir="rtl">
3
Ordocument.body.setAttribute('dir', 'rtl')
– evolutionxbox
Jul 13 '16 at 8:57
Thanks, its possible that document.children is undefined?
– CSharpBeginner
Jul 13 '16 at 9:13
@CSharpBeginner No.document.childrenreturns at least one item (body- because it is automatically added by the web browser event if it doesn't exist in your code).
– NETCreator Hosting - WebDesign
Jul 13 '16 at 10:16
add a comment |
Using CSS:
*
direction: rtl;
Using JavaScript:
var children = document.children;
var i;
for (i = 0; i < children.length; i++)
children[i].style.direction = "rtl";
OR
document.body.style.direction = "rtl";
OR ( from evolutionxbox comment )
document.body.setAttribute('dir', 'rtl')
Using JQuery (even if you are not asking about):
$("html").children().css("direction","rtl");
Inline Coding:
<body dir="rtl">
OR
<html dir="rtl">
Using CSS:
*
direction: rtl;
Using JavaScript:
var children = document.children;
var i;
for (i = 0; i < children.length; i++)
children[i].style.direction = "rtl";
OR
document.body.style.direction = "rtl";
OR ( from evolutionxbox comment )
document.body.setAttribute('dir', 'rtl')
Using JQuery (even if you are not asking about):
$("html").children().css("direction","rtl");
Inline Coding:
<body dir="rtl">
OR
<html dir="rtl">
edited Nov 10 '18 at 7:34
answered Jul 13 '16 at 8:54
NETCreator Hosting - WebDesign
5,05931436
5,05931436
3
Ordocument.body.setAttribute('dir', 'rtl')
– evolutionxbox
Jul 13 '16 at 8:57
Thanks, its possible that document.children is undefined?
– CSharpBeginner
Jul 13 '16 at 9:13
@CSharpBeginner No.document.childrenreturns at least one item (body- because it is automatically added by the web browser event if it doesn't exist in your code).
– NETCreator Hosting - WebDesign
Jul 13 '16 at 10:16
add a comment |
3
Ordocument.body.setAttribute('dir', 'rtl')
– evolutionxbox
Jul 13 '16 at 8:57
Thanks, its possible that document.children is undefined?
– CSharpBeginner
Jul 13 '16 at 9:13
@CSharpBeginner No.document.childrenreturns at least one item (body- because it is automatically added by the web browser event if it doesn't exist in your code).
– NETCreator Hosting - WebDesign
Jul 13 '16 at 10:16
3
3
Or
document.body.setAttribute('dir', 'rtl')– evolutionxbox
Jul 13 '16 at 8:57
Or
document.body.setAttribute('dir', 'rtl')– evolutionxbox
Jul 13 '16 at 8:57
Thanks, its possible that document.children is undefined?
– CSharpBeginner
Jul 13 '16 at 9:13
Thanks, its possible that document.children is undefined?
– CSharpBeginner
Jul 13 '16 at 9:13
@CSharpBeginner No.
document.children returns at least one item (body - because it is automatically added by the web browser event if it doesn't exist in your code).– NETCreator Hosting - WebDesign
Jul 13 '16 at 10:16
@CSharpBeginner No.
document.children returns at least one item (body - because it is automatically added by the web browser event if it doesn't exist in your code).– NETCreator Hosting - WebDesign
Jul 13 '16 at 10:16
add a comment |
The direction property in CSS sets the direction of of content flow within a block-level element. This applies to text, inline, and inline-block elements. It also sets the default alignment of text and the direction that table cells flow within a table row.you can use
body
direction: rtl; /* Right to Left */
or There is an HTML attribute for setting the direction as well
<body dir="rtl">
It is recommended you use the HTML attribute, as that will work even if CSS fails or doesn't affect the page for any reason.
add a comment |
The direction property in CSS sets the direction of of content flow within a block-level element. This applies to text, inline, and inline-block elements. It also sets the default alignment of text and the direction that table cells flow within a table row.you can use
body
direction: rtl; /* Right to Left */
or There is an HTML attribute for setting the direction as well
<body dir="rtl">
It is recommended you use the HTML attribute, as that will work even if CSS fails or doesn't affect the page for any reason.
add a comment |
The direction property in CSS sets the direction of of content flow within a block-level element. This applies to text, inline, and inline-block elements. It also sets the default alignment of text and the direction that table cells flow within a table row.you can use
body
direction: rtl; /* Right to Left */
or There is an HTML attribute for setting the direction as well
<body dir="rtl">
It is recommended you use the HTML attribute, as that will work even if CSS fails or doesn't affect the page for any reason.
The direction property in CSS sets the direction of of content flow within a block-level element. This applies to text, inline, and inline-block elements. It also sets the default alignment of text and the direction that table cells flow within a table row.you can use
body
direction: rtl; /* Right to Left */
or There is an HTML attribute for setting the direction as well
<body dir="rtl">
It is recommended you use the HTML attribute, as that will work even if CSS fails or doesn't affect the page for any reason.
answered Jul 13 '16 at 8:52
Dipak Prajapati
27116
27116
add a comment |
add a comment |
You can use jQuery.
$('body').children().css('direciton','rtl');
Or use pure Javascript:
document.getElementsByTagName('Body')[0].style.direction = "rtl"
amm..its possible that i have no <body> tag in the .html page?
– CSharpBeginner
Jul 13 '16 at 8:49
I don't think so. anyway, you can use any element (like Div container) and use the same code....
– Gil Lupu
Jul 13 '16 at 8:50
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
@CSharpBeginner - the body tag will be added automatically by the browser if it is not present in the HTML.
– evolutionxbox
Jul 13 '16 at 8:58
You can peform the same with pure Javascrip:document.getElementsByTagName('Body')[0].style.direction = "rtl"
– Gil Lupu
Jul 13 '16 at 8:58
add a comment |
You can use jQuery.
$('body').children().css('direciton','rtl');
Or use pure Javascript:
document.getElementsByTagName('Body')[0].style.direction = "rtl"
amm..its possible that i have no <body> tag in the .html page?
– CSharpBeginner
Jul 13 '16 at 8:49
I don't think so. anyway, you can use any element (like Div container) and use the same code....
– Gil Lupu
Jul 13 '16 at 8:50
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
@CSharpBeginner - the body tag will be added automatically by the browser if it is not present in the HTML.
– evolutionxbox
Jul 13 '16 at 8:58
You can peform the same with pure Javascrip:document.getElementsByTagName('Body')[0].style.direction = "rtl"
– Gil Lupu
Jul 13 '16 at 8:58
add a comment |
You can use jQuery.
$('body').children().css('direciton','rtl');
Or use pure Javascript:
document.getElementsByTagName('Body')[0].style.direction = "rtl"
You can use jQuery.
$('body').children().css('direciton','rtl');
Or use pure Javascript:
document.getElementsByTagName('Body')[0].style.direction = "rtl"
edited Jul 27 '16 at 6:58
marc_s
570k12811031251
570k12811031251
answered Jul 13 '16 at 8:46
Gil Lupu
114
114
amm..its possible that i have no <body> tag in the .html page?
– CSharpBeginner
Jul 13 '16 at 8:49
I don't think so. anyway, you can use any element (like Div container) and use the same code....
– Gil Lupu
Jul 13 '16 at 8:50
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
@CSharpBeginner - the body tag will be added automatically by the browser if it is not present in the HTML.
– evolutionxbox
Jul 13 '16 at 8:58
You can peform the same with pure Javascrip:document.getElementsByTagName('Body')[0].style.direction = "rtl"
– Gil Lupu
Jul 13 '16 at 8:58
add a comment |
amm..its possible that i have no <body> tag in the .html page?
– CSharpBeginner
Jul 13 '16 at 8:49
I don't think so. anyway, you can use any element (like Div container) and use the same code....
– Gil Lupu
Jul 13 '16 at 8:50
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
@CSharpBeginner - the body tag will be added automatically by the browser if it is not present in the HTML.
– evolutionxbox
Jul 13 '16 at 8:58
You can peform the same with pure Javascrip:document.getElementsByTagName('Body')[0].style.direction = "rtl"
– Gil Lupu
Jul 13 '16 at 8:58
amm..its possible that i have no <body> tag in the .html page?
– CSharpBeginner
Jul 13 '16 at 8:49
amm..its possible that i have no <body> tag in the .html page?
– CSharpBeginner
Jul 13 '16 at 8:49
I don't think so. anyway, you can use any element (like Div container) and use the same code....
– Gil Lupu
Jul 13 '16 at 8:50
I don't think so. anyway, you can use any element (like Div container) and use the same code....
– Gil Lupu
Jul 13 '16 at 8:50
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
@CSharpBeginner - the body tag will be added automatically by the browser if it is not present in the HTML.
– evolutionxbox
Jul 13 '16 at 8:58
@CSharpBeginner - the body tag will be added automatically by the browser if it is not present in the HTML.
– evolutionxbox
Jul 13 '16 at 8:58
You can peform the same with pure Javascrip:document.getElementsByTagName('Body')[0].style.direction = "rtl"
– Gil Lupu
Jul 13 '16 at 8:58
You can peform the same with pure Javascrip:document.getElementsByTagName('Body')[0].style.direction = "rtl"
– Gil Lupu
Jul 13 '16 at 8:58
add a comment |
using css:
html *
direction: rtl;
using jQuery:
$('html').children().css('direction','rtl');
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
@evolutionxbox but i have added css solution first.. jquery is aditional
– Anuj Khandelwal
Jul 13 '16 at 8:54
That's fine, but please include a non-jquery JS solution. As that is what the OP has asked for. "How can i do that with javascript? i can add attribute to body element?"
– evolutionxbox
Jul 13 '16 at 8:56
add a comment |
using css:
html *
direction: rtl;
using jQuery:
$('html').children().css('direction','rtl');
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
@evolutionxbox but i have added css solution first.. jquery is aditional
– Anuj Khandelwal
Jul 13 '16 at 8:54
That's fine, but please include a non-jquery JS solution. As that is what the OP has asked for. "How can i do that with javascript? i can add attribute to body element?"
– evolutionxbox
Jul 13 '16 at 8:56
add a comment |
using css:
html *
direction: rtl;
using jQuery:
$('html').children().css('direction','rtl');
using css:
html *
direction: rtl;
using jQuery:
$('html').children().css('direction','rtl');
answered Jul 13 '16 at 8:50
Anuj Khandelwal
565817
565817
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
@evolutionxbox but i have added css solution first.. jquery is aditional
– Anuj Khandelwal
Jul 13 '16 at 8:54
That's fine, but please include a non-jquery JS solution. As that is what the OP has asked for. "How can i do that with javascript? i can add attribute to body element?"
– evolutionxbox
Jul 13 '16 at 8:56
add a comment |
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
@evolutionxbox but i have added css solution first.. jquery is aditional
– Anuj Khandelwal
Jul 13 '16 at 8:54
That's fine, but please include a non-jquery JS solution. As that is what the OP has asked for. "How can i do that with javascript? i can add attribute to body element?"
– evolutionxbox
Jul 13 '16 at 8:56
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
Refrain from giving jQuery answers if the OP hasn't tagged the question with it.
– evolutionxbox
Jul 13 '16 at 8:53
@evolutionxbox but i have added css solution first.. jquery is aditional
– Anuj Khandelwal
Jul 13 '16 at 8:54
@evolutionxbox but i have added css solution first.. jquery is aditional
– Anuj Khandelwal
Jul 13 '16 at 8:54
That's fine, but please include a non-jquery JS solution. As that is what the OP has asked for. "How can i do that with javascript? i can add attribute to body element?"
– evolutionxbox
Jul 13 '16 at 8:56
That's fine, but please include a non-jquery JS solution. As that is what the OP has asked for. "How can i do that with javascript? i can add attribute to body element?"
– evolutionxbox
Jul 13 '16 at 8:56
add a comment |
Javascript
document.body.style.direction= "rtl";
HTML
<body dir="rtl">
1
Ordocument.body.setAttribute('dir', 'rtl')
– evolutionxbox
Jul 13 '16 at 8:56
Yes ,we can do this
– rejo
Jul 13 '16 at 8:57
add a comment |
Javascript
document.body.style.direction= "rtl";
HTML
<body dir="rtl">
1
Ordocument.body.setAttribute('dir', 'rtl')
– evolutionxbox
Jul 13 '16 at 8:56
Yes ,we can do this
– rejo
Jul 13 '16 at 8:57
add a comment |
Javascript
document.body.style.direction= "rtl";
HTML
<body dir="rtl">
Javascript
document.body.style.direction= "rtl";
HTML
<body dir="rtl">
edited Jul 13 '16 at 9:01
answered Jul 13 '16 at 8:56
rejo
3,20252134
3,20252134
1
Ordocument.body.setAttribute('dir', 'rtl')
– evolutionxbox
Jul 13 '16 at 8:56
Yes ,we can do this
– rejo
Jul 13 '16 at 8:57
add a comment |
1
Ordocument.body.setAttribute('dir', 'rtl')
– evolutionxbox
Jul 13 '16 at 8:56
Yes ,we can do this
– rejo
Jul 13 '16 at 8:57
1
1
Or
document.body.setAttribute('dir', 'rtl')– evolutionxbox
Jul 13 '16 at 8:56
Or
document.body.setAttribute('dir', 'rtl')– evolutionxbox
Jul 13 '16 at 8:56
Yes ,we can do this
– rejo
Jul 13 '16 at 8:57
Yes ,we can do this
– rejo
Jul 13 '16 at 8:57
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f38346671%2fdirection-rtl-to-all-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
<body dir="rtl">
– rejo
Jul 13 '16 at 8:43
How can i do that with javascript? i can add attribute to body element?
– CSharpBeginner
Jul 13 '16 at 8:46
1
Yes.
document.body.setAttribute('dir', 'rtl')– evolutionxbox
Jul 13 '16 at 8:52