user728222
user728222

Reputation: 245

Adding in hidden input types changes my css

My code looks like this:

<form name="deleteUser" action="/groupmanager" method="post"><div id="x">  {% csrf_token %} 
<input type="hidden" name="username" value = "{{name}}"></input>
<input type="hidden" name="groupName" value = "{{group}}"></input>
<input type="submit" name="xButton" id="xButton" value="x"></div></form>

And the code works exactly the way I want it to but now that I've added it, the layout of the page has changed. Now the button has moved onto a new line instead of being on the same line as the things before it in the code.

My code used to look like this:

<div id="x"><input type="submit" name="xButton" id="xButton" value="x"></div>

Upvotes: 1

Views: 81

Answers (1)

bogatyrjov
bogatyrjov

Reputation: 5378

I beleave the change is in IE only ? Try adding position:relative; float:left to the css of hidden inputs.

Upvotes: 1

Related Questions