tags:

views:

48

answers:

1

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?

+3  A: 

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.

SpliFF
I dont think it is html. Even if i have a <form> some text </form>, the form is still not hiding?
Harry
Who said anything about thinking? I said validate. There's a HUGE difference. Anything wrong with ANY part of the page can cause unexpected results if it affects the DOM. So validate.
SpliFF