+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Project please help

  1. #11
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    Re: Project please help

    I finally fixed it, thank for all your help. Wow, I was at a low today, I forgot the this keyword....

    Thanks gomarc and mission.

    +REP

  2. #12
    misson is offline Community Advocate misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,391

    Re: Project please help

    You did most of the work yourself, so kudos for that.

    One last suggestion: rather than continually calling 'setTimeout' in fadeIn, call setInterval to run fadeIn periodically and call clearInterval when the fade-in completes (the links are to MDC, but setInterval and clearInterval are cross browser).

  3. #13
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    Re: Project please help

    A quick css question: How could I make the images in the chalkboard disappear behind the boarders when the window size is changed instead of flying off the screen?

  4. #14
    misson is offline Community Advocate misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,391

    Re: Project please help

    You first need a suitable ancestor whose bounding box is the display region you want to limit the images to (td#chalkboard is a candidate). If no such ancestor exists, find or create one and (by some method) set its bounding box. Set the ancestor's overflow property to 'hidden'.

  5. #15
    Twinkie is offline Banned Twinkie is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ft. Lauderdale, Florida
    Posts
    1,389

    Re: Project please help

    Yea, I tried simply setting the overflow: hidden property for td#chalkboard, but it did nothing. How do you bound an object that is positioned absolutely?
    Last edited by Twinkie; 05-31-2009 at 11:51 PM.

  6. #16
    misson is offline Community Advocate misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,391

    Re: Project please help

    Setting overflow on some node N clips descendents whose containing block is descended from N's padding block (that is, the containing block is the padding block of N or a descendent of N). The containing block for positioned elements (such as the absolutely positioned pictures) is the nearest positioned ancestor. td#chalkboard isn't positioned, which is why td#chalkboard's overflow isn't clipping the pictures.

    The simplest way of setting a block to be the containing block for children is to relatively position the element. However, you can't relatively position a <td> element. More precisely, relative positioning is undefined for elements with a "display" of "table-cell".

    You could try messing around with absolutely positioning td#chalkboard, or add an element between td#chalkboard and the photo holder <div>s and try to position that. It'll probably be a mess and you'll find it easier to scrap the table layout and use CSS, as per best practices. There are countless ways of making cornered boxes using CSS; Google will turn up many of them.

    Edit: since the placeholder_* class attributes are unique, they may as well be IDs.
    Last edited by misson; 06-02-2009 at 04:32 AM.

+ Reply to Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. is this project will be good for my academic?
    By balaji2u in forum Off Topic
    Replies: 0
    Last Post: 12-12-2008, 11:03 AM
  2. A Project For My Academic
    By balaji2u in forum Off Topic
    Replies: 4
    Last Post: 11-03-2008, 01:06 AM
  3. Project Wonderful
    By JuniorD in forum Earning Money
    Replies: 2
    Last Post: 09-16-2008, 02:35 AM
  4. New web project.
    By ingjpd00 in forum Graphics & Webdesign
    Replies: 4
    Last Post: 10-04-2005, 07:55 AM
  5. Project XeoX - Anyone want to help?
    By Nekaid in forum Scripts & 3rd Party Apps
    Replies: 6
    Last Post: 07-22-2005, 09:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers