| Author |
Problem positioning Data using CSS and <s:iterate ( information is placed on top of each other).
|
Sammy Bill
Ranch Hand
Joined: Dec 29, 2008
Posts: 96
|
|
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
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
|
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...
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
 |
|
|
subject: Problem positioning Data using CSS and <s:iterate ( information is placed on top of each other).
|
|
|