Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


IE moves text by a few px's after scriptaculous fadein

Posted on 2008-10-28
Medium Priority
Last Modified: 2013-11-11
Hi everyone,

Just wondering if anyone has ever noticed a strange IE text blur issue when Scriptaculous fades in an object.

I am using Scriptaculous to fade in my page on load, once the content is faded in, IE seems to blur the text contained within the content. What actually seems to be happening is the text is moving right by 1 pixel once the fade in is complete.

Any help on this issue would be greatly appreciated.
Question by:RichardMass
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3

Author Comment

ID: 22827969
Just a followup to the above question I posted. It would seem to be a change to cleartype once the animation is finished. The text stays clean and crisp in IE6, just IE7 seems to blur it and as it uses cleartype I am suspecting that is the cause.

I will leave this open for a short time and if anyone knows any ways of fixing this it would be greatly appreciated though I am starting to think it is one of those things we have no control over.
LVL 16

Expert Comment

ID: 22828118
I think you might have missed it, but try to place your question in as many Zones (max 3) as you can, so more experts will see it.  JavaScript is a very popular Zone, so you should always place it there if it relates to JavaScript in some way.

Anyhow, give the layer a CSS style "background-color: white".  Or any other color, just make sure you give it a background-color.
<div id="blah" style="background-color: white"></div>
LVL 16

Expert Comment

ID: 22828134
And this one, for example, could go under Internet Explorer and CSS.
The best choice would be Zones: Internet Explorer, CSS, and JavaScript, so you get the most attention.  There seem to be few experts hanging about in JavaScript Frameworks.
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!


Author Comment

ID: 22836701
Hi Sh0e,

First off, thank you for the suggestion about where to place the thread, I will make the most of that feature from now on.

Unfortunately the background-color:#fff fix didn't seem to achieve anything. I have put up a test version to display the issue. It only happens in IE7 and you will notice the box containing the test text has the style="background-color:#fff" in it.


It's not a huge problem but certainly something I would like to fix if it is possible.

Thank you again Sh0e for all your help. I'm experienced with CSS/XHTML and have been dodging javascript for a number of years as much as possible but you have been a great assistance while trying to get up with the times.

LVL 16

Accepted Solution

sh0e earned 1500 total points
ID: 22837596
You want to apply the background-color to whatever it is you are fading. In this case it should be the divlayout-fadewrapper.  Oddly enough, I couldn't reproduce the problem on the content, but all the other text on the page went fuzzy.
It does sound like it is definitely a Cleartype problem, as jQuery seems to turn off Cleartype when using effects.

Author Comment

ID: 22847004
Still no luck with that I'm afraid Sh0e,

I did however find this detail below which would seem to explain the issue I believe...

"IE7 filters (which is how the opacity of an element is currently set for IE) utilize DirectX. Fonts are smoothed using ClearType. The problem is DirectX doesnt understand how ClearType works so any time you use a filter on an item, IE has to turn off font smoothing on the item so DirectX can do the filtering. In earlier betas of IE7, the browser would turn the font smoothing back if you there were no more filters on the item (for example, opacity started at .1 and went up to 1 and the filter was taken off as an opacity of 1.0 and no filter are the same thing). However the problem with that was when you did transitions the text would get jagged and then change back when the transition was done."

I guess we just have to put up with it until IE pulls it's thumb out. I'll stop there before I get worked up about Microsoft. lol.

Thank you for your effort Sh0e.


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question