my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes alignment problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "alignment problem" Watch "alignment problem" New topic

alignment problem

Naresh Talluri
Ranch Hand

Joined: Oct 12, 2007
Posts: 115
Hi folks
here iam facing one problem in alignment,
in my jsp i have a data like "name : Naresh" ,like this i have 5-6 rows
are there, but if i enter more data like "name : Naresh Naresh Naresh
Naresh Naresh Naresh" , then the data is placed like miss aligned.
here is my code..


one more thing if i give the space in the each word it is aligned properly.


if i haven't give any space between the messages it is miss aligned.

ex :

can you please let me know how can i overcome this one...


[ April 10, 2008: Message edited by: Naresh Talluri ]
Naresh Talluri
Ranch Hand

Joined: Oct 12, 2007
Posts: 115
Hey i had fixed this one
in the css i had given like "float : right"
now it is aligning properly

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

In the future, please refrain from posting Struts code in an HTML forum. Please post the final rendered HTML rather than the Struts source.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: alignment problem
It's not a secret anymore!