SitePoint Sponsor

User Tag List

Results 1 to 9 of 9

Thread: <tr> moves down

  1. #1
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,484
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    <tr> moves down

    why, when I check the box to make the other label/input ox appear does the <tr> seem to move about 5px?
    http://mvsr.org/secure/members.php
    "Oh, and Jenkins--apparently your mother died this morning."

  2. #2
    i want cake and cookies Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    9,997
    Mentioned
    41 Post(s)
    Tagged
    1 Thread(s)
    In what browser?
    I get no shift in FF/Linux.



  3. #3
    Robert Wellock silver trophybronze trophy
    SitePoint Award Recipient xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,243
    Mentioned
    51 Post(s)
    Tagged
    0 Thread(s)
    The markup has quite a lot of weird syntax faults in it but I could not see a rendering difference until I turned on JavaScript...
    };-) http://www.xhtmlcoder.com/
    Thinking Web: Voices of the Community

    > March 2013 - SitePoint forums: Spot the Error 3: Calling all Sleuths! Winner Announced!... She knows how to spot simple <code> errors but do you?

  4. #4
    Non-Member bronze trophy
    Join Date
    Nov 2009
    Location
    Keene, NH
    Posts
    3,760
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)
    CLASSIC example of not just "table for nothing", but also using a H2 for what should be a LEGEND...

    Surprising since you are stacking label and input properly, so what do you need the table for? Much less what's up with the DIV for nothing around it?

  5. #5
    Community Advisor silver trophybronze trophy
    dresden_phoenix's Avatar
    Join Date
    Jun 2008
    Location
    Rockford, IL
    Posts
    2,371
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    YEAH! What Shadow said...


    but, I am not going into that. I see the drop as well. Your TR is the height of a simple text + check box , until the face book option is checked... at this point your js changing the display of the content of the adjacent TD ( the one with FaceBook Page)...

    I didn't delve into your code. But what I would do is instead of changing the display from :none to :block ( or whatever) try using the visibility: property INSTEAD. That way the space the input/label item takes will still be there even when the input/label are hidden...

    hope that helps

  6. #6
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,484
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    ok im trying to make the <span> visible only when the check mark is checked
    http://mvsr.org/secure/members.php
    "Oh, and Jenkins--apparently your mother died this morning."

  7. #7
    Non-Member bronze trophy
    Join Date
    Nov 2009
    Location
    Keene, NH
    Posts
    3,760
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)
    dresden_phoenix hit it on the head -- stop doing display:none and display:block, and instead set visibility:hidden; -- of course you appear to be relying on a mootools library for that show hide which isn't just making it hard to maintain/edit, it's also bloating out the page for NOTHING.

    visibility:hidden elements still 'exist in flow' -- which is to say that the space they would occupy on screen would still be there even though they aren't drawn.

    Of course the invalid markup of those REL attributes on the spans is a real head scratcher... span doesn't HAVE REL... the lack of "for" on some of those labels is kinda odd, and Of course all that mooTools for nothing is over-complicating matters too.

    I'm out the door for a dinner date in like 20 minutes, but I'll try to remember to revisit this when I get back; I'll toss together how I'd handle that... Which step one will involve telling mootools where to shove it.

    "usableforms" -- absolute riot of the name when it has the exact opposite effect

  8. #8
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,484
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    //////thanks, I figured the usableforms.js was the problem (and ?I took a look at the script and im afraid to touch anything)
    Is this something I should use?
    http://www.htmlforums.com/client-sid...pt-64870.html\

    Thanks for the patience...
    "Oh, and Jenkins--apparently your mother died this morning."

  9. #9
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,484
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    "Oh, and Jenkins--apparently your mother died this morning."

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
  •