Yeah, pretty bored at the moment and trying to find things to do; my idea worked, as I will show
CSS (snippet):
Code:
input.rss{
background:url('images/input.jpg') no-repeat;
height:45px;
width:290px;
border:none;
padding:10px;
font-size:18px;
margin:0;
color:#2876c1;
float:left;
}
input.submit2{
background:url('images/submit.jpg') no-repeat top;
height:45px;
width:60px;
border:none;
float:right;
}
HTML (snippet):
Code:
<div style="width:370px;padding:0;">
<form action="#" method="get">
<input type="text" id="rssfeed" name="rssfeed" value="Value" class="rss" />
<input type="submit" value="" class="submit2" />
</form>
</div>
<div style="clear:both;"></div>
Firstly, there were no need for margins on either of the input elements. If you want a bit of space left above them, just use the divider in my example above to have a top-padding set, that way the gap is the same for both input elements. This fixed a little bug that was occurring after I got the floats working.
The text input is floated left, and the submit input is floated right. These are 'floated' to the left and the right of the divider they're in
.
This works for me, although I haven't tried it with the rest of your HTML and CSS coding, but looking at it there shouldn't be any troubles.