something like this

I used to use <table>, but most of people says I should change to <DIV> even I am not sure the reason.
I use STRUTS2 loop to generate all of Images and names.
<%@taglib prefix="s" uri="/struts-tags" %>
<s:div id="noAccount">
<s:iterator value="noOutfitAccount">
<div id="containerUser">
<img src="https://graph.facebook.com/<s:property value="fbID"/>/picture?type=small"/>
<div id="imgName">
<s:property value="name"/>
</div>
<br/>
</div>
</s:iterator>
</s:div>
<hr/>
<s:iterator value="outfitUser">
<img src="https://graph.facebook.com/<s:property/>/picture?type=normal"/>
</s:iterator>
<style>
#imgName{
clear:both;
float:left;
}
#img{
float:left;
}
#container{
width:500px;
overflow:hidden;
}
</style>
basically the <s:iterator></iterator> is a loop to display all of images and names.
this code makes all of images and names go left.
anything could help me a lot.
thanks

New Topic/Question
Reply



MultiQuote





|