• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem positioning Data using CSS and <s:iterate ( information is placed on top of each other).

 
Sammy Bill
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

In the following code:



when the data is displayed, It is displayed on top of each other. I understand that it is because i m setting the same CSS dimension for the element.
How can i change the CSS style properties based on the number of iteration so the data will not be displayed on top of each other?

Thanks
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oussama you are using position:absolute here. That's why all the elements are coming on top of each other. Why are you doing it is not clear to me, but a simple solution would be to use position:relative so that the elements are placed in relation to each other at each iteration. That would be the simplest solution...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic