text-justify


НЕ РАБОТАЕТ!!!



значения свойства:


  • auto
  • inter-word
  • inter-ideograph
  • inter-cluster
  • newspaper
  • distribute
  • kashida
  • none



css/style.css
  • div {
  •  width: 400px;
  •  height: 120px;
  •  border: 1px solid #8E8E8E;
  •  margin-left: 50px;
  • }
  •  
  • .a {
  •  text-align: justify;
  •  text-justify: auto; /*NOT WORK!!!*/
  • }
  •  
  • .c {
  •  text-align: justify;
  •  text-justify: none; /*NOT WORK!!!*/
  • }
div {
 width: 400px;
 height: 120px;
 border: 1px solid #8E8E8E;
 margin-left: 50px;
}

.a {
 text-align: justify;
 text-justify: auto; /*NOT WORK!!!*/
}

.c {
 text-align: justify;
 text-justify: none; /*NOT WORK!!!*/
}


index.html
  • <!DOCTYPE html>
  • <html>
  • <head>
  •  <meta charset="utf-8" />
  •  <title>New Page</title>
  •  <link href="css/style.css" rel="stylesheet" />
  •  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  • </head>
  • <body>
  •  <div class="a">
  •   But it was a dream. Three weeks ago, I had been lying on a beach
  •   in Hawaii. But I was not in Hawaii now. I was dreaming in my office
  •   in Los Angeles. I had returned from my holiday and there was no
  •   work for me.
  •  </div>
  •  <br />
  •  <div id="div1">
  •   But it was a dream. Three weeks ago, I had been lying on a beach
  •   in Hawaii. But I was not in Hawaii now. I was dreaming in my office
  •   in Los Angeles. I had returned from my holiday and there was no
  •   work for me.
  •  </div>
  •  <br />
  •  <div class="b">
  •   But it was a dream. Three weeks ago, I had been lying on a beach
  •   in Hawaii. But I was not in Hawaii now. I was dreaming in my office
  •   in Los Angeles. I had returned from my holiday and there was no
  •   work for me.
  •  </div>
  •  <br />
  •  <div class="c">
  •   But it was a dream. Three weeks ago, I had been lying on a beach
  •   in Hawaii. But I was not in Hawaii now. I was dreaming in my office
  •   in Los Angeles. I had returned from my holiday and there was no
  •   work for me.
  •  </div>
  •  <script>
  •   /*JavaScript*/
  •   document.getElementById("div1").style.textAlign = "justify";
  •   document.getElementById("div1").style.textJustify = "newspaper"; /*NOT WORK!!!*/
  •   /*jQuery*/
  •   $(document).ready(function () {
  •    $(".b").css({ "text-align": "justify", "text-justify": "kashida" }); /*NOT WORK!!!*/
  •   });
  •  </script>
  • </body>
  • </html>
  • <!DOCTYPE html>
  • <html>
  • <head>
  •  <meta charset="utf-8" />
  •  <title>New Page</title>
  •  <link href="css/style.css" rel="stylesheet" />
  •  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  • </head>
  • <body>
  •  <div class="a">
  •   But it was a dream. Three weeks ago, I had been lying on a beach
  •   in Hawaii. But I was not in Hawaii now. I was dreaming in my office
  •   in Los Angeles. I had returned from my holiday and there was no
  •   work for me.
  •  </div>
  •  <br />
  •  <div id="div1">
  •   But it was a dream. Three weeks ago, I had been lying on a beach
  •   in Hawaii. But I was not in Hawaii now. I was dreaming in my office
  •   in Los Angeles. I had returned from my holiday and there was no
  •   work for me.
  •  </div>
  •  <br />
  •  <div class="b">
  •   But it was a dream. Three weeks ago, I had been lying on a beach
  •   in Hawaii. But I was not in Hawaii now. I was dreaming in my office
  •   in Los Angeles. I had returned from my holiday and there was no
  •   work for me.
  •  </div>
  •  <br />
  •  <div class="c">
  •   But it was a dream. Three weeks ago, I had been lying on a beach
  •   in Hawaii. But I was not in Hawaii now. I was dreaming in my office
  •   in Los Angeles. I had returned from my holiday and there was no
  •   work for me.
  •  </div>
  •  <script>
  •   /*JavaScript*/
  •   document.getElementById("div1").style.textAlign = "justify";
  •   document.getElementById("div1").style.textJustify = "newspaper"; /*NOT WORK!!!*/
  •   /*jQuery*/
  •   $(document).ready(function () {
  •    $(".b").css({ "text-align": "justify", "text-justify": "kashida" }); /*NOT WORK!!!*/
  •   });
  •  </script>
  • </body>
  • </html>