Re: CSS Float Versus Align= Right or Left?

  • From: "Jeffrey Fidler" <jfiddler2@xxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sun, 16 Dec 2007 15:11:49 -0500

Bryan,

The HTML align attribute is deprecated and should be avoided if possible. The CSS float property is the preferred method of achieving what you have described. The presentation of the table you have described behaves similarly in both cases, but the CSS is the supported method for future compatibility. Lastly, you would do best to avoid using inline CSS like the example you described in favor of either embedded or external styles. In the latter, best case scenario, you would create a style declaration something like .floatRight{float:right;} and then put a class="floatRight" attribute in your <table> tag as such: <table class="floatRight">...</table>.

Hope this helps!

-Jeff

----- Original Message ----- From: "Jaffar@xxxxxxxxxxxxx" <jaffar@xxxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Sunday, December 16, 2007 8:08 AM
Subject: Re: CSS Float Versus Align= Right or Left?


Hi Brian. Yes. When you cause text to float left or right, The text will scroll left or right as your page does so. When you cause the text to be aligned right or left, then all corresponding starting and ending text on separate lines of the text on your page will be aligned exactly to each other, either on the right or on the left of your page as your CSS instructions would instruct them too. Cheers! ----- Original Message ----- From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Sunday, December 16, 2007 7:11 PM
Subject: CSS Float Versus Align= Right or Left?


Is there any difference between CSS's Style="Float:Right;" and Align="Right"?

For instance, by applying each one of these attributes to a Table tag, it should align the table with the right side of the page, and wrap all surrounding text to the left of that space.

Is one method more reliable than the other for this purpose? Is one method more widely supported? Is it reliable to simply put both of these attributes within the same tag all the time?

Thanks,

Bryan

__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind




__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: