Hi Rachana,
Yes this is possible using CSS. You can test it yourself when you use Google Chrome with the Developer Tool (F12).
Then find the elements and work with for the input:
display: inline;
width: 50%;
and for the error div:
display: inline-block;
width: 50%;
Hope this helps for you.
Kind regards,
Jeffrey