• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

div problem in CSS

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
reply
    Bookmark Topic Watch Topic
  • New Topic