1 Attachment(s)
[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?
Re: Odd spacing issue when dynamically making elements appear
Have you inspected the elements if they have some padding or some margin?
Re: Odd spacing issue when dynamically making elements appear
Quote:
Originally Posted by
dee-u
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!