Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

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. Published under the terms of the Open Content License Design by Interspire