Skip to content
makunete edited this page Oct 18, 2016 · 22 revisions

On the one hand, we added divs to index.php for create a block of code that has allowed move the images site and we also put a float class in these div:

echo " div class='float' ";

echo "/div";

ul

   ?php
       $imgs = scandir("./img",SCANDIR_SORT_ASCENDING);
       foreach( $imgs as $img ) {
	      echo "<div class='float'>";
	       if( substr($img,-3)=="jpg" ) {
		       $name = substr($img,0,-4);
		       echo "<li>\n";
		       echo "<a href='profile/$name.html'>\n";
		       echo "<img src='img/$img' width='130'><br/>";
		       echo $name."</a>";
		       echo "<br /><br />\n";
		       echo "</li>\n\n";
		
	      }
	      echo "</div>";
       }

  ?


  </ul>

On the other hand, we created a prueba.css for add the style:

.float {float: left;}

And finally we merge our branch with master branch.

Clone this wiki locally