word-spacing



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


  • normal
  • width
  • inherit



css/style.css
  • .a {
  •  word-spacing: normal;
  • }
.a {
 word-spacing: normal;
}


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>
  •  <p class="a">To be or not to be?</p>
  •  <br />
  •  <p id="p1">To be or not to be?</p>
  •  <br />
  •  <p class="b">To be or not to be?</p>
  • <script>
  •  /*JavaScript*/
  •  document.getElementById("p1").style.wordSpacing = "15px";
  •  /*jQuery*/
  •  $(document).ready(function () {
  •   $(".b").css({ "word-spacing": "-10px" });
  •  });
  • </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>
  •  <p class="a">To be or not to be?</p>
  •  <br />
  •  <p id="p1">To be or not to be?</p>
  •  <br />
  •  <p class="b">To be or not to be?</p>
  • <script>
  •  /*JavaScript*/
  •  document.getElementById("p1").style.wordSpacing = "15px";
  •  /*jQuery*/
  •  $(document).ready(function () {
  •   $(".b").css({ "word-spacing": "-10px" });
  •  });
  • </script>
  • </body>
  • </html>