Skip to content
Advertisement

Submit button sizing bug

I’ve got a “lost property website” which shows items from a database. The form for the website is formatted correctly, but when it is clicked on the button becomes extremely large.

JavaScript
JavaScript

Obviously it’s a bit hard to tell without the attached database, but why does the search button become really big?

Is it the PHP that is changing the size, or is it adjusting to fit something in?

Advertisement

Answer

You should use an Editor that shows you opened and closed tags. In your code are several mistakes that should result in several problems, this part here especially:

JavaScript

So i highly recommend to practice a bit how to make code cleaner, so that you notice mistakes like this.

example:

JavaScript

Basically: Avoid unecessary white-space, align opening and closing tags on the same level. With that information you should be able to rearrange your code and fix the Button-Bug yourself.

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