SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    Minnesota
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scriptaculous Effects Affect Inline Styles Only?

    Not a huge issue, more of an annoyance, but when firing
    Code:
    Effect.Appear('whatever');
    it only works when
    Code:
    display:block;
    is an inline style on the target element and not when it's applied via an external style sheet. Is there a fix for this or is it just a quirk of the library?

    Thanks.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,684
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Have you confirmed that the external style sheet declaratation is not being over-ridden by another declaration?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    Minnesota
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep. I even recreated the situation an a pure test environment.
    Inline styles: OK.
    External Stylesheet or <style> tag in the <head>: Not OK.

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,684
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    The documentation page for Effect.Appear seems to explain all.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  5. #5
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    Minnesota
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll argue that it restates it, not explains it. The frustrating thing is that jQuery doesn't have this restriction, it just works either way.

    Ah well... thanks.


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
  •