Jump to content

Problem with IE - go figure


linus72982

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
Share on other sites

Why is this in the middle of the buttons </form>, it looks like your code will not validate and the </form> will add a line break in IE. close the form where it should (not in the middle of the div between the buttons).

Link to comment
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.

Link to comment
Share on other sites

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.