Direction rtl to all page










3














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.










share|improve this question

















  • 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















3














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.










share|improve this question

















  • 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













3












3








3







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.










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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












  • 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












5 Answers
5






active

oldest

votes


















3














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">





share|improve this answer


















  • 3




    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










  • @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



















3














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.






share|improve this answer




























    1














    You can use jQuery.



    $('body').children().css('direciton','rtl');


    Or use pure Javascript:



    document.getElementsByTagName('Body')[0].style.direction = "rtl"





    share|improve this answer






















    • 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



















    0














    using css:



    html * 
    direction: rtl;



    using jQuery:



    $('html').children().css('direction','rtl');





    share|improve this answer




















    • 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


















    0














    Javascript



     document.body.style.direction= "rtl";


    HTML



    <body dir="rtl">





    share|improve this answer


















    • 1




      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










    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
    );



    );













    draft saved

    draft discarded


















    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









    3














    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">





    share|improve this answer


















    • 3




      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










    • @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
















    3














    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">





    share|improve this answer


















    • 3




      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










    • @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














    3












    3








    3






    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">





    share|improve this answer














    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">






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 10 '18 at 7:34

























    answered Jul 13 '16 at 8:54









    NETCreator Hosting - WebDesign

    5,05931436




    5,05931436







    • 3




      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










    • @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













    • 3




      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










    • @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








    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














    3














    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.






    share|improve this answer

























      3














      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.






      share|improve this answer























        3












        3








        3






        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.






        share|improve this answer












        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 13 '16 at 8:52









        Dipak Prajapati

        27116




        27116





















            1














            You can use jQuery.



            $('body').children().css('direciton','rtl');


            Or use pure Javascript:



            document.getElementsByTagName('Body')[0].style.direction = "rtl"





            share|improve this answer






















            • 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
















            1














            You can use jQuery.



            $('body').children().css('direciton','rtl');


            Or use pure Javascript:



            document.getElementsByTagName('Body')[0].style.direction = "rtl"





            share|improve this answer






















            • 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














            1












            1








            1






            You can use jQuery.



            $('body').children().css('direciton','rtl');


            Or use pure Javascript:



            document.getElementsByTagName('Body')[0].style.direction = "rtl"





            share|improve this answer














            You can use jQuery.



            $('body').children().css('direciton','rtl');


            Or use pure Javascript:



            document.getElementsByTagName('Body')[0].style.direction = "rtl"






            share|improve this answer














            share|improve this answer



            share|improve this answer








            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

















            • 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












            0














            using css:



            html * 
            direction: rtl;



            using jQuery:



            $('html').children().css('direction','rtl');





            share|improve this answer




















            • 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















            0














            using css:



            html * 
            direction: rtl;



            using jQuery:



            $('html').children().css('direction','rtl');





            share|improve this answer




















            • 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













            0












            0








            0






            using css:



            html * 
            direction: rtl;



            using jQuery:



            $('html').children().css('direction','rtl');





            share|improve this answer












            using css:



            html * 
            direction: rtl;



            using jQuery:



            $('html').children().css('direction','rtl');






            share|improve this answer












            share|improve this answer



            share|improve this answer










            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
















            • 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











            0














            Javascript



             document.body.style.direction= "rtl";


            HTML



            <body dir="rtl">





            share|improve this answer


















            • 1




              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















            0














            Javascript



             document.body.style.direction= "rtl";


            HTML



            <body dir="rtl">





            share|improve this answer


















            • 1




              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













            0












            0








            0






            Javascript



             document.body.style.direction= "rtl";


            HTML



            <body dir="rtl">





            share|improve this answer














            Javascript



             document.body.style.direction= "rtl";


            HTML



            <body dir="rtl">






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jul 13 '16 at 9:01

























            answered Jul 13 '16 at 8:56









            rejo

            3,20252134




            3,20252134







            • 1




              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












            • 1




              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







            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

















            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

            How do I collapse sections of code in Visual Studio Code for Windows?

            ャフサォクコ ケウ,コ,ワ メ,ロスョノ゙,クネ,フムカヤヲニ,エコ゚ツ ウイオン゙ケワサネォキモュキォウイノンコチ゚メヌナイゥフュ,カヒウネェ ネ,ホノケ,ムュキ ッボーミュハ,チ ツス ィ メウイマヤ,゙ウチ ヅ ロ,ォジヌェ ャヌット ェ,マャ,チナエヒネソキツテ トホヲヲミーァ