Oliver Watkins
Oliver Watkins

Reputation: 13499

Firefox strips out my float:left

In my Javascript I have some code that looks like this :

itemView.style.float = 'left';

In chrome the float:left comes up fine:

style="float: left; cursor: pointer; color: rgb(102, 102, 102); font-size: 12px; line-height: 14px; text-decoration: none; width: 155px; height: 30px; padding-left: 24px; padding-top: 9px; margin-top: -4px; background-color: white; background-position: initial initial; background-repeat: initial initial";

However in Firefox it is missing

style="cursor: pointer; color: rgb(102, 102, 102); font-size: 12px; line-height: 14px; text-decoration: none; width: 155px; height: 30px; padding-left: 24px; padding-top: 9px; margin-top: -4px; background: none repeat scroll 0% 0% white";

Upvotes: 0

Views: 138

Answers (1)

AbsoluteƵERØ
AbsoluteƵERØ

Reputation: 7870

It should be:

itemView.style.cssFloat="left"

Here's a little more about the cssFloat property.

Upvotes: 4

Related Questions