php - images joined together, align properly -


i tried adjust images of category modifying vqmod in 100x100 200x200 , happen, use display: block, float: left; im not lucky fix it.

i tried adjust col-sm-2 , added d-inline , not working. instead of using css code or stylesheet, added code here. can show me code fix it? thank , regards all

here image

<modification>  	<id>subcategory images oc 2.0</id>  	<version>1.0</version>  	<vqmver>1.2.3</vqmver>  	<author>vger.co.uk</author>  	  	<file name="catalog/controller/product/category.php">          <operation>              <search position="replace" index="1" offset="3"><![cdata[  $data['categories'][] = array(              ]]></search>              <add><![cdata[  				if ($result['image']) {  					$image = $this->model_tool_image->resize($result['image'], 200, 200);  				} else {  					$image = $this->model_tool_image->resize('placeholder.png', 100, 100);  				}  				  				$data['categories'][] = array(  					'name'  => $result['name'] . ($this->config->get('config_product_count') ? ' (' . $this->model_catalog_product->gettotalproducts($filter_data) . ')' : ''),  					'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '_' . $result['category_id'] . $url),  					'thumb' => $image  				);              ]]></add>          </operation>  	</file>  	  	<file name="catalog/view/theme/*/template/product/category.tpl">          <operation>              <search position="replace" index="1" offset="25"><![cdata[  <?php if ($categories) { ?>              ]]></search>              <add><![cdata[  <?php if ($categories) { ?>  	<div class="col-sm-12">  	  <div>  		<h3><?php echo $text_refine; ?></h3>  	  </div>  	  <div style="text-align: center;">  		<div class="row">  		<?php foreach ($categories $category) { ?>  		  <div class="col-sm-2 col-xs-6 d-inline" style="margin-bottom: 20px;">  			<a href="<?php echo $category['href']; ?>"><img src="<?php echo $category['thumb']; ?>" alt="<?php echo $category['name']; ?>" /></a>  			<a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>  		  </div>  		<?php } ?>  		</div>  	  </div>  	</div>  <?php } ?>              ]]></add>          </operation>  	</file>  	  </modification>

<div class="img-responsive inline-block;" style="border:">  				<a href="<?php echo $category['href']; ?>"><img src="<?php echo $category['thumb']; ?>" alt="<?php echo $category['name']; ?>" /></a>  			</div>


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -