Skip to content
Advertisement

php error message affecting height of textboxes

I’m using php to display an error message to the user. The code is sitting at the top of the page and once the error message displays, it affects the height of my textboxes. I coded the height in a style sheet. Also, my error message is sitting inside of a div. I tried using the span tag but that isn’t working either since its still sitting at the top line of the page. This is the error message in php:

JavaScript

Registration div css:

JavaScript

Error message css:

JavaScript

Here’s the css for the textboxes:

JavaScript

Before the error message:

Before error message

I was thinking that maybe its the font size that’s the issue but regardless…a white line also appears at the bottom of the page:

Error

Please have patience with me. I’m a student and new to php. Thank you

Advertisement

Answer

i can tell you how to rectify the error (though i am still looking for the reason because of which it happens). what i did is that i inserted the php code inside body tag and it work fine no change in Textbox dimensions.Below is the code i wrote to prove the same

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement