Here's the HTML code generated by JSF:
<div align="center">
<img src="images/background_image.jpg" height="200px" width="30%" style="vertical-align: top"/>
<span style="">
Welcome abc, <input type="submit" value="logout" />.
<br />
Thu, 12-Jul-2012 15:46:07 AST
</span>
</div>
The issue is that "Thu, 12-Jul-2012 15:46:07 AST" is displaying below the image instead of beside it.
On the right side of the image, I am getting "Welcome abc" and the logout button.
Any insights on what might be causing this misalignment would be appreciated!
Edit 1
- I inserted
<div align="center">
to center everything within the container. Removing the
<br />
tag results in output as
. Adding the tag should ideally display:Welcome abc, logout.Thu, 12-Jul-2012 15:46:07 AST
Welcome abc, logout.
Thu, 12-Jul-2012 15:46:07 AST
However, due to the
<br />
tag, the output shifts below the image.
I hope this clarification sheds some light on the issue.
This situation is driving me crazy :(