This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Struts and the fly likes Aligning problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Aligning problem" Watch "Aligning problem" New topic

Aligning problem

Roel De Nijs

Joined: Jul 19, 2004
Posts: 7903

I have a 3x3 table and in the middle cell there is a big picture. In all other cells there are small ones.
I use this code to indicate a cell and give it his content:

but the big problem is that it doesn't align at the bottom of the cell. if i change the above code to:

and it works just fine.

Anyone a solution for this annoying problem? And i really need the html:image because when user clicks it has to submit the form.

many thanks!

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
Roel De Nijs

Joined: Jul 19, 2004
Posts: 7903

is there nobody that has a solution for this ?
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32815

I think the problem might be the html:form tags. Some browsers provide a lot of extra white space around a form. Try moving the form tags outside your table to see if that helps.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Roel De Nijs

Joined: Jul 19, 2004
Posts: 7903


You are right, that's the problem. I moved the <html:form> tag outside the table and it works fine.

You're my saving angel and a big to you. I could almost kiss you
[ July 27, 2004: Message edited by: Roel De Nijs ]
I agree. Here's the link:
subject: Aligning problem
jQuery in Action, 3rd edition