Forum Moderators: open
In Firefox, this is working perfectly.
In IE, there is almost like a paragraph break sized space between the image and the text box.
Here's the code:
<img src="image.gif">
<form action="<?= $_SERVER['REQUEST_URI']?>" method="post">
<input id="searchbox" type="text" name="search" value="<?= $keywords?>"/>
<input type="submit" value="Search" class="searchbutton"/>
</form>
I noticed that if I put the image html inside the form html, it actually ends up looking perfect in IE. This is what I mean:
<form action="<?= $_SERVER['REQUEST_URI']?>" method="post">
<img src="image.gif">
<input id="searchbox" type="text" name="search" value="<?= $keywords?>"/>
<input type="submit" value="Search" class="searchbutton"/>
</form>
However, this does not validate.
So, any help on getting this to work correctly would be greatly appreciated. Thanks.
Have you tried giving the form a zero margin-top, and the image a zero margin-bottom?
Only problem now is I need to go back and set margins for everything I didn't set margins for (which is nearly everything). I knew I should have done that from the beginning. =)
Thanks a ton for the help though.