Re: CSS Float Versus Align= Right or Left?

  • From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sun, 16 Dec 2007 13:54:50 -0800

This does help, thanks.

I don't believe it will be possible though, to implement an external style in this case. I run an RSS service from my site, which writes the content of any news feed on to the user's page.

In order to implement an external style solution, I would need to program the JavaScript to change the Style tag within their header, which would violate my own privacy policy, and may conflict with their own style declarations.

Using CSS within the table tag seems best. My fear was that, by changing the current implementation which uses the Align attribute to CSS, this would somehow throw off the alignment on all of the peoples pages who are currently using the script.

This doesn't seem to be the case though, which makes the job much easier.

Thanks,

Bryan



----- Original Message ----- From: "Jeffrey Fidler" <jfiddler2@xxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Sunday, December 16, 2007 12:11 PM
Subject: Re: CSS Float Versus Align= Right or Left?


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


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

Other related posts: