Jump to content

Recommended Posts

I am having a weird layout issue, that is driving me crazy.  I have a dropdown, and a small image next to it as the submit link, and for some reason i cant get the image to line up even with the dropdown box.

 

My code is very simple, which is why I don't understand what is going on.  Here it is:

 

		<form action="http://readydvd.mydvdkiosks.com/member/machineDvds" method="get">

  			<select name="machineId" size="1" style="width:300px; font-size:9pt;">
  		
			<option>Select your location</option>
			<option value="S100-B160">Clear Lake, IA</option>
			<option value="S100-B162">Ankeny, IA</option>
			<option value="S100-B163">Maquoketa, IA</option>

			<input alt="Go" style="padding-left:10px;" name="machineId" src="images/arrow.gif" type="image" />

		</select>

	</form>

 

The layout problem can be seen here:

 

http://www.farewaymovies.com/test/index2.php

 

 

Link to comment
https://forums.phpfreaks.com/topic/154972-form-layout-problem/
Share on other sites

The ONLY 2 elements allowed inside <select> and </select> are:

[*]<option></option>

[*]<optgroup></optgroup>

Anything else and it's up to each browser how they handle your invalid page.

 

So place the image under the </select> and if that doesn't already do the trick try adding float: left; to the style attribute value of the image.

Link to comment
https://forums.phpfreaks.com/topic/154972-form-layout-problem/#findComment-815246
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.