Jump to content

Recommended Posts

My CSS works in FF, but not in IE - gee, never seen a post start with that ::)

 

Anyway, I just have a simple div that wraps 3 input buttons, the width of the div is correct to fit the buttons (includes the border width, etc) and the div is margin auto'd to center.  Well, in IE, the second and third buttons show up centered below the first.  No matter how wide I make the containing div, they still show up under, so I don't think it is a width problem.  Is there an IE bug with this that I don't know about?  For reference, here is the CSS:

 

#logOptionButtons {
width: 305px;
margin: 0px auto;
text-align: center;
clear: both;
margin-top: 5px;
}

 

and here's the content:

 

<div id="logOptionButtons">
	<input type="checkbox" id="rememberMe" name="rememberMe" checked="checked" value="remember" />
	&nbsp <label for="rememberMe">Remember Me</label><br />
	<input type="hidden" value="login" name="processType" />
	<input type="submit" value="Login" class="loginButton" />
	</form>
	<button type="button" class="loginButton" onClick="window.location='<?php echo HOME_PAGE.REGISTER_PAGE; ?>'">Register</button>
	<button type="button" class="loginButton" style="width:125px;" onClick="window.location='<?php echo HOME_PAGE.FORGOTPWORD_PAGE; ?>'">Forgot Password</button>
</div>

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/230384-problem-with-ie-go-figure/
Share on other sites

Well, it's not "supposed" to cut at the end, it is "supposed" to cut right where it is, buttons don't have to be in a form, especially buttons that just act like links.  That will probably fix the problem though, so I suppose I'll do it as a concession to Microsoft being a tool.  Form is not supposed to incur line breaks.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.