Results 1 to 3 of 3

Thread: [RESOLVED] Odd spacing issue when dynamically making elements appear

  1. #1

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Resolved [RESOLVED] Odd spacing issue when dynamically making elements appear

    I've got an odd spacing issue when dynamically making elements appear. Page is all built at runtime with AJAX calls...

    At any rate - I'm adding a SEARCH TEXT field and two buttons - I'll work on making them appear nice later...

    Problem right now is that when you click the SEARCH button to make the INPUT field and GO/CLR buttons appear, the whole screen "drops down" a bit - as shown in the bottom circle on the screen shot.

    The INPUT field and buttons are NOT TOO large to fit in the VERTICAL space, so what would be causing so much "head room" above them that would cause them to force the DIV they are in to sneak down the page like that?
    Attached Images Attached Images  

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,123

    Re: Odd spacing issue when dynamically making elements appear

    Have you inspected the elements if they have some padding or some margin?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Odd spacing issue when dynamically making elements appear

    Quote Originally Posted by dee-u View Post
    Have you inspected the elements if they have some padding or some margin?
    Yes - for hours! I added "vertical-align: top;" in the CSS and that fixed it. Makes no sense to me that "alignment" selection would do anything other than move an element in the parent - NOT that it would ever make the parent size change!

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

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



Click Here to Expand Forum to Full Width