значения свойства:
div {
width
:
400px
;
height
120px
border
1px
solid
#8E8E8E
}
.a {
text-align
left
.c {
justify
div { width: 400px; height: 120px; border: 1px solid #8E8E8E; } .a { text-align: left; } .c { text-align: justify; }
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
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"
></
</
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.
br
id
"div1"
"b"
"c"
/*JavaScript*/
document.getElementById("div1").style.textAlign = "right";
/*jQuery*/
$(document).ready(function () {
$(".b").css({ "text-align": "center" });
});