This question may have a strange title, but I couldn't think of anything better to call it.
So, here's the situation: I have a grid layout where I need my .search-wrapper
to be 50% wide and floated to the right. In my demonstration on jsfiddle, you can see that the whole .search-wrapper
has a green background which is crucial for fitting into my grid design.
Inside this .search-wrapper
, there are a search box and a button next to each other with floating properties. The #search-button
is floated left while the input
should align to the right of it.
However, the challenge I'm facing is figuring out how to float both the #search-button
and the input
elements to the right inside the outer container .search-wrapper
.
The current setup...
The desired outcome...
You can view a demo of my issue here: http://jsfiddle.net/mQSBR/2/ Any suggestions or ideas? Your assistance would be greatly appreciated. Thank you!