Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Converting the Product listing code to CSS


Recommended Posts

I am trying to convert the Product_Listing.php file into css, removing all <table> references.


I am at the stage where each product enclosed in a CSS style, but what I now need is to be able to close a <div> after each even product.

But I also need to code it so that if the last featured product is odd, not even then the <div> tag is closed.


So far I have been unable to locate the code that duplicates the layout.


The basic example of what I want to achieve is below:


<div class="line"> <!-- I can add this to the ODD param -->

<div class="odd">Product Information</div>

<div class="even"> Product Information </div>

</div><!-- Need to be able to add this -->


<!-- Then Repeat until all products shown -->


If anyone can point me in the right direction, great. If they have already solved this and want to pass on so much needed information then even better.




Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...