Results 1 to 5 of 5

Thread: Animated Collapse losing font-weight?

  1. #1
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Animated Collapse losing font-weight?

    1) Script Title: Animated Collapsible DIV v2.01

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm

    3) Describe problem:

    I created this simple test page to show the issue I am having:

    http://scimitargames.com/test.htm

    Basically, it seems like the font-weight is lost after toggling a div with the animated collapse script in IE 7. It could be something else other than the font-weight, but the font definitely changes.

    Any insight? Am I doing something wrong with my css or am I doing something incorrect with the script?
    Last edited by Fangarr; 02-09-2009 at 11:08 PM. Reason: added browser

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I believe you're talking about in IE right (and not FF)? This is due to a bug in IE's clear-type font rendering in combination with changing the opacity of an element that contains text. This post on the web might help.
    DD Admin

  3. #3
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am talking about IE but unfortunately the fix on that site did not help. I also tried some of the fixes mentioned in the comments section but none of them worked either.

    Thanks for the suggestion though, it looked promising.

  4. #4
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    While the suggestion of adding a background-color as in the linked article did not fix the problem I think the article is definitely about the issue I am seeing. If I remove fade=1 from the addDiv call so that the opacity is not messed with by the script then the bug does not happen.

    So for now I have a workaround.

    Thanks!

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Well disabling the fade effect inside the script certainly will make it no longer an issue. Anyhow, you may want to do a search on the forums for the clear type font issue- there are quite a few threads on this I believe (relating to other scripts as well that manipulate opacity). To be honest I haven't really researched the topic all that much myself.
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •