Reputation: 42175
I have 2 buttons horizontally aligned. In most browsers there's a space between them, but if you view this:
in "Browser Mode: IE7" & "Document Mode: IE7 Standards" you can see that the 2 buttons are stuck together.
Can somebody suggest how I can correct this so that there is always a consistent space between these buttons?
Upvotes: 0
Views: 41099
Reputation: 1
I have 3 solutions to this problem:
The easiest is to use
but of course this can't be used professionally.
Use padding
property
margin-left
property.Upvotes: -1
Reputation: 1925
Have you tried putting
in between them?
IE does not render "padding" to W3C standards. (See here for explanation.) That's almost assuredly where this problem is coming from, so you'll need to insert something in between them to make it work properly.
Upvotes: 5
Reputation: 40046
you can use the margin-left
property to move the button some pixels right such as margin-left:3px
, but first you have to remove the whitespace between the input
and button
.
Example: http://jsfiddle.net/2HP43/18/
Upvotes: 2
Reputation: 7839
Try this
<input type="submit" class="button" id="Submit1" value="Remove" name="btnRemoveFunds"> <button class="button" id="Button1">Add More Funds</button>
ensures you have a space in there
Upvotes: 1