This is a CSS problem. I need to trim the white spaces from a div or list or paragraph.
-------------------------------------------
| This is my Text. |
-------------------------------------------
How to convert this div/list/paragraph (i.e. any box) to show like the following when it is needed?
--------------------
| This is my Text. |
--------------------
And the Vice-versa?
This should work regardless of the parent container.