Jump to content

Increasing categories height in front page


Recommended Posts

Hello,

 

I am designing my first Prestashop template.

I changed category align from vertical to horizontal in front page.

However distance from between categories and new division (tabs in my case) does not increase so Category and Tab divisions now overlap.

 

How increace heigh of Category division ?
I tried to modify category.tpl

height="{$categorySize.height}"   by multiplying this value.

However this does not effect front page (but affects inner page).

 

Website is buiding on address

http://hcentras.w7.lt/index.php

 

Thanks,

WebDoctor

post-549767-0-97695600-1382174650_thumb.jpg

Link to comment
Share on other sites

#categories_block_left li {

border-bottom: 2px solid #ccc;

font-size: 18px;

text-transform: uppercase;

color: #000;

background: green;

display: block;

float: left;

padding: 0px auto;

margin-bottom: 10px;

height: 525px;

width: 220px;

border-radius: 15px;

margin-right: 10px;

margin-top: 15px;

text-align: center;

}

 

but there is height:525px; defined, so what about that? why this css style command is there?

this causing everything ;)

Link to comment
Share on other sites

Hi Nemo1,

 

I added to file blockcategories.tpl

 

<!-- Block categories module -->
<div id="categories_block_left" class="block clearfix">

 

No effect

 

Then added this text to global.css

 

#tags_block_left{
    clear: both;
}

 

BINGO !

It works !

 

Thank you !

 

 

Try adding a clearfix to the categories block, and a clear: both to the tags block :)

Link to comment
Share on other sites

Hi Vekia,

 

Thank you for your answer.

I need this block to this height of 525px as I will need to attached images. So height needs to fit images.

 

 

 

#categories_block_left li {
border-bottom: 2px solid #ccc;
font-size: 18px;
text-transform: uppercase;
color: #000;
background: green;
display: block;
float: left;
padding: 0px auto;
margin-bottom: 10px;
height: 525px;
width: 220px;
border-radius: 15px;
margin-right: 10px;
margin-top: 15px;
text-align: center;
}
 
but there is height:525px; defined, so what about that? why this css style command is there?
this causing everything ;)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...