Harry
Harry

Reputation: 13329

Form inside hidden div is still displaying in Firefox

The form within the div is supposed to be hidden, but it isn't in FireFox. In Safari it is fine.

<div id="add_task" style="display:none;">
<form id="add_task_form">
<input type="submit">
</form>
</div>

Any ideas?

Upvotes: 0

Views: 554

Answers (1)

SpliFF
SpliFF

Reputation: 38966

Chances are your HTML is malformed somewhere else in the page (like not closing a tag) causing the structure of the page to be randomly determined by the browser. Try validating it with the w3c validator.

Upvotes: 3

Related Questions