Can CSS be bidirectional or is it a style sheet essentially related to the direction of the script (RTL vs LTR)?
those. can one and a separate style sheet work for languages from left to right (in English) and from right to left (in Hebrew)?
If so, what recommendations should be considered?
If not, how can I convert the ltr stylesheet to rtl?
CSSJanus, ltr rtl. , , , . float: left to float: right ( , background-position). : ltr; !
, !
, iGoogle, __BIDI_START_EDGE__, __BIDI_END_EDGE__, __BIDI_DIR__, and __BIDI_REVERSE_DIR__. CSS, , , - margin-left margin-__BIDI_START_EDGE__. , (ltr rtl), "", "", "ltr" "rtl" .
__BIDI_START_EDGE__, __BIDI_END_EDGE__, __BIDI_DIR__, and __BIDI_REVERSE_DIR__
margin-__BIDI_START_EDGE__
, , , , , "" "".
(. OpenAjaxIDE, : " IBM BIDI OpenSocial" OpenAjax.)
I would not recommend using a single stylesheet to support RTL and LTR styles. You will upload a large CSS file to use only half of it on the page.
Although, if you want to do this, you can add the class to the html tag, for example ('rtl' and 'ltr'), and use it in the stylesheet, as shown below:
.ltr .class {padding-left:10px;} .rtl .class {padding-right:10px;}
You can check this tutorial to find out how to "RTL" on the LTR page.
Source: https://habr.com/ru/post/1719436/More articles:Jquery $this или each() для указания одной ссылки за раз - jqueryThe way to destroy the class "stream" - c ++Export shared libraries in cross-platform form? - cHow can I replace intraline tabs with spaces while maintaining alignment? - vimHelp reflection. Create a collection from a class based on its properties? - collectionsLaTeX: Are there any web interfaces? - web-frontendHow to connect jQuery event handler to YouTube movie? - javascriptМатематическое уравнение Веб-контроль? - mathSQL aggregation for a smaller result set - sqloverlay for managing webbrowser in a WPF application? - browserAll Articles