Jump to content

[SOLVED]Changing position of text in categories


Recommended Posts

Hello.

I would like to change my category block in such a way that child category will be displayed slightly shifted to the right, comparing to the parent.

 

In the attachment no.1 is actual look. In attachment 2 is what I would like to do. Someone can help me with this?

 

Website: proconstruction.eu/en

 

Css responsible for blockcategories.tpl:

div#categories_block_left div.block_content {padding:0 0 3px 0;}
div#categories_block_left ul.tree {padding:;}
div#categories_block_left ul.tree li {padding:2px 0 0 0;background:url(../img/categ_item.png) 0 0 repeat-x;position:relative;}
div#categories_block_left ul.tree > li:first-child {padding:1px 0 0 0;}
div#categories_block_left ul.tree a {width:185px;height:23px;display:block;padding:9px 0 0 35px;background:url(../img/categ_item_bullet.gif) 0 13px no-repeat;font-weight:bold;}
div#categories_block_left ul.tree a:hover,
div#categories_block_left ul.tree a.selected {background:url(../img/categ_item_bullet_active.gif) 0 13px no-repeat;color:#333;}
div#categories_block_left ul.tree li ul {zoom:1;}
div#categories_block_left ul.tree li ul li a {background:none;font-weight:normal;}
div#categories_block_left ul.tree li ul li a:hover,
div#categories_block_left ul.tree li ul li a.selected {background:none;}
div#categories_block_left ul.tree li ul li a.selected {font-weight:bold;}
div#categories_block_left span.grower {width:15px;height:12px;display:block;cursor:pointer;position:absolute;right:9px;top:13px;}
div#categories_block_left span.OPEN {background:url(../img/categ_asc.gif) 3px 3px no-repeat;}
div#categories_block_left span.CLOSE {background:url(../img/categ_desc.gif) 3px 3px no-repeat;}

post-570889-0-21041300-1370133287_thumb.jpg

post-570889-0-99731500-1370133349_thumb.jpg

Edited by polemnik (see edit history)
Link to comment
Share on other sites

No :( it is actual look. I want child category to be shifted to the right, and again with the child of the child.

 

Czyżbyś był Polakiem? :) To jest aktualny wygląd strony, chcę by każda podkategoria była przesunięta w prawo o kilka px..

Edited by polemnik (see edit history)
Link to comment
Share on other sites

zgadza się, pozwolę sobie jednak kontynuować po angielsku ( ze względu na fakt, że wątek jest na angielskim forum )

 

 

 

after line 470px in global.css add this:

div#categories_block_left ul.tree li {padding-left:10px;}

 

will work ;)

  • Like 1
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...