Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <div dir="ltr">From the left</div>
  <div dir="rtl">From the right</div>
</body>
</html>
 
div:dir(ltr) {
  background-color: blue;
}
div:dir(rtl) {
  background-color: cyan;
}
/* Moz */
div:-moz-dir(ltr) {
  background-color: green;
}
div:-moz-dir(rtl) {
  background-color: lime;
}
/* MS */
div:-ms-dir(ltr) {
  background-color: red;
}
div:-ms-dir(rtl) {
  background-color: orange;
}
/* WK */
div:-webkit-dir(ltr) {
  background-color: purple;
}
div:-webkit-dir(rtl) {
  background-color: fuchsia;
}
/* Presto */
div:-o-dir(ltr) {
  background-color: purple;
}
div:-o-dir(rtl) {
  background-color: fuchsia;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
cvrebertpro
0viewers