Jump to content

IE8 CSS problem


_tina_

Recommended Posts

Hi,

 

I have the following.

 

#memberlogin .logininput{
background:url(/images/memberlogin_formbg.gif) no-repeat left top;
width:239px;
height:42px;
padding: 10px 10px 19px 25px;

margin-left: 30px;
overflow:hidden;
}

#memberlogin .logininput .email{
margin:0;
padding:0;   
	margin-bottom:5px;
}

#memberlogin .logininput .email, #memberlogin .logininput .password{
display:block;
}

#memberlogin p{
color:#cccccc;
font-size:12px;
}

 

and the HTML

 

<form id="memberloginform" action="/auth/authenticate" method="post">
<input type="hidden" value="http://staging.ratemybroker.s8.cnydevzone.com/" name="url"/>
<div class="logininput">
</div>
<div class="submitwrap">
</div>
</form>

 

This works fine in IE7 and FF but in IE8, it pushes the two form fields far over to the left and only displays from the middle of the box to the end.

 

Any idea from the above of what might be causing this?

 

Thanks in advance.

Link to comment
Share on other sites

 

Also to note, where I set

margin-left: 30px;

 

When I test using F12 in IE8, it's showing up as a -115px value rather than 30px.  Is there a way around this?

 

Thanks again.

 

Hi,

 

I have the following.

 

#memberlogin .logininput{
background:url(/images/memberlogin_formbg.gif) no-repeat left top;
width:239px;
height:42px;
padding: 10px 10px 19px 25px;

margin-left: 30px;
overflow:hidden;
}

#memberlogin .logininput .email{
margin:0;
padding:0;   
	margin-bottom:5px;
}

#memberlogin .logininput .email, #memberlogin .logininput .password{
display:block;
}

#memberlogin p{
color:#cccccc;
font-size:12px;
}

 

and the HTML

 

<form id="memberloginform" action="/auth/authenticate" method="post">
<input type="hidden" value="http://staging.ratemybroker.s8.cnydevzone.com/" name="url"/>
<div class="logininput">
</div>
<div class="submitwrap">
</div>
</form>

 

This works fine in IE7 and FF but in IE8, it pushes the two form fields far over to the left and only displays from the middle of the box to the end.

 

Any idea from the above of what might be causing this?

 

Thanks in advance.

Link to comment
Share on other sites

  • 2 weeks later...
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.