HTML Attribute for <DIV ...>
ALIGN =LEFT |CENTER |RIGHT |JUSTIFY

ALIGN sets the alignment of the contents of the <DIV ...> element. All four values, LEFT, CENTER, RIGHT, and JUSTIFY, are all well supported. LEFT is the default value.

This code shows the default:

<DIV>
This would be a great time for a cup of coffee, don't you think? How
about that! Let's drink coffee all day!
</DIV>

which gives us:

This would be a great time for a cup of coffee, don't you think? How about that! Let's drink coffee all day!

<DIV ALIGN=LEFT>
This would be a great time for a cup of coffee, don't you think? How
about that! Let's drink coffee all day!
</DIV>

gives us:

This would be a great time for a cup of coffee, don't you think? How about that! Let's drink coffee all day!

<DIV ALIGN=RIGHT>
I'm sensing a distinct shift to the right in this country.
</DIV>

gives us:

I'm sensing a distinct shift to the right in this country.

<DIV ALIGN=CENTER>
I consider myself an extreme centrist.
</DIV>

gives us:

I consider myself an extreme centrist.

<DIV ALIGN=JUSTIFY>
I feel completely justified in this opinion. etc.
</DIV>

gives us:

I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion. I feel completely justified in this opinion.

Structure Only >