Input - looks good in FF, but not in IE...?

Maverick88
avatar
rank Regular

Regular


Posts: 22
Joined: 2006-04-18

Hi to everyone,

I just finished my new design and it's 100% XHTML/CSS validated.

Everything looks good in Firefox, but in Explorer I got some problems with the input.
When looking at the input in Explorer, you will notice that it start 30 pixels from the left. The input doesn't cover the whole box.

Can anyone please help me out with this one.

Website: http://www.mustproxy.com
CSS: http://www.mustproxy.com/style.css

Thanks in advance.

Hugo
Hugo's picture
rank Moderator

Moderator


Posts: 12580
Joined: 2004-06-06
Location: London

If claiming that code

If claiming that code validates it's wise to ensure that it actually does Eye-wink

<center><form method="get"
      action="http://groups.yahoo.com/subscribe/HotProxies"
      style="width: 470px;">
  <h6 style="font-weight: bold; margin-bottom: 5px; text-align: center">
      <font size="2">Unblocked Proxies In Your Inbox? 100% SPAMFREE</font></h6>
  <input style="vertical-align: top"
      type="text"
      name="user"
      value="Enter mail here, click Yahoo"
      size="27" />
  <input type="image" alt="Click to join HotProxies"
      name="Click to join HotProxies"
      src="http://i36.tinypic.com/21ex0l0.png" /></p> Puzzled 
</form></center>

Fix this up then revisit the page if the problem still exists post acknowledgement and we will look further, until then with markup errors there is little point.

Whilst on the subject of markup there are several elements you are using that really shouldn't be used; loose the <center> tag and the <font> tag and don't use the <br> tag just to force spacing thats what the margin property is for.

Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Maverick88
Maverick88's picture
rank Regular

Regular


Posts: 22
Joined: 2006-04-18

I fixed the code, but the

I fixed the code, but the same problem occurred before the fix.

Hugo
Hugo's picture
rank Moderator

Moderator


Posts: 12580
Joined: 2004-06-06
Location: London

Well actually I see more

Well actually I see more extreme problems, when stating a problem occurs in a browser you need to state the version especially where IE is concerned.

well done for getting rid of those deprecated elements.

In IE6 you have a clearing problem due to IE6 incorrectly handling elements with a width that follow after floated elements, due to the width placed on div#yahoo and #content they are dropping below the floated sidebars. With this type of layout it's not necessary to apply a width to the central column, simply apply margins that push it's edges away from the sidebars, do this on both elements or bring the yahoo din into #content.

Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Maverick88
Maverick88's picture
rank Regular

Regular


Posts: 22
Joined: 2006-04-18

Thanks a lot. That problem

Thanks a lot. That problem is fixed.

Just the input problem that remains.

Hugo
Hugo's picture
rank Moderator

Moderator


Posts: 12580
Joined: 2004-06-06
Location: London

If you do some checking

If you do some checking you'll find that if the width on the parent div of that input is removed then IE behaves as expected, that tells us hasLayout has been triggered on the element and is causing problems, the solution therefore is to move the width you need either to an element a node above that div or try setting the width on the input, I'll leave you to figure out the best approach.

Be careful setting dimensions, they may be needed at times but can have consequences, where possible always try and avoid setting width unless there is a very definite reason and then check that is hasn't cause unwanted behaviour.

I note that in fact you did not follow the advice to remove width on the central column instead choosing to float it, that's fine it sorts things out, but if taking that approach you might as well move that column higher in the source code.

Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Maverick88
Maverick88's picture
rank Regular

Regular


Posts: 22
Joined: 2006-04-18

I removed the margin-left

I removed the margin-left from the #url and that fixed it.

The only problem right now is that the input box is too far to the left, I need to somehow move it 35 pixels to the right.

I guess when I applied margin-left: 35px; to the #url it applied it also to the #input.

Hugo
Hugo's picture
rank Moderator

Moderator


Posts: 12580
Joined: 2004-06-06
Location: London

Well you appear to be doing

Well you appear to be doing fine despite my advice so I'll let you continue as it seems you are almost home and dry, it shouldn't be hard to sort the positioning of that element out now.

Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Maverick88
Maverick88's picture
rank Regular

Regular


Posts: 22
Joined: 2006-04-18

I have been using the margin

I have been using the margin and padding elements to move the input box to the right, but that doesn't help. What other elements can I use to move it to the right?

Maverick88
Maverick88's picture
rank Regular

Regular


Posts: 22
Joined: 2006-04-18

Well, the problem is fixed.

Well, the problem is fixed. A friend of mine told me to add a line of code to the style.css and that did it.

Thanks again for your help and explanation of these things.

Maverick88
Maverick88's picture
rank Regular

Regular


Posts: 22
Joined: 2006-04-18

I just got one last issue

I just got one last issue with list of the left side. Again, problem only in IE6.