Idocs Guide to 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>
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.

Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.