jQuery in Action, 3rd edition
The moose likes HTML, CSS and JavaScript and the fly likes  div problem in CSS 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 " div problem in CSS" Watch " div problem in CSS" New topic

div problem in CSS

Thomas Greene
Ranch Hand

Joined: Aug 09, 2004
Posts: 127
I have a table like structure in HTML which is created using <div> tags. I iterate over a collection in JSP and display data as rows (created using div's).

The CSS which is used has absolute values. So if the length of anything, say, "name" increases the whole struture gets messed up. We cannot use HTML tables due to some reason.

The CSS is as follows

Please tell me how to change this CSS so that the size of each div increases with the increase in size of the content.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

Why use the abolute positioning at all? It seems rather silly to go through all that trouble rather than letting the browser lay out the data.

And what's up with not using tables for tabular data?

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: div problem in CSS
It's not a secret anymore!