Category Background

draver

No avatar

2008-04-11 17:30

Hello. I want to define a background for every category but i can't find the correct tag.
I tried to assign the body part into a td with class "content" and insert css in that category (td.content{background:[...]}", but with no effect. How can i made this?

» Quick.Cart v2.x

draver

No avatar

2008-04-11 18:11

And another question:
How to add "next" "previous" button to change the page?
I look into productsInRow.tpl, and the only thing that is related to page is


  
<tr class="f">
    <
td colspan="$iColumns">
      <
div id="pages"><span>$lang[Pages]:</span>$aList[sPages]</div>
    </
td>
  </
tr>

merci

No avatar

2008-04-14 08:28

draver - if you want to change background of content, open templates/default.css and add for example: background:#ddd; in line started from #content{
If you want to have another background for every category you have to make separately css file for them, it needs some modyfication in v2.x of Q.C, read: http://opensolution.org/Quick.Cart/forum/?p=readTopic&nr=4396

draver

No avatar

2008-04-16 16:38

i solve the problem, here're the results:
edit page.tpl and add <div class="body> in a table with one column and one row. Assign to the td class="content" so, we will hve <td class="content">.
In every category (large description), add this code:

<style type="text/css">
td.content
{background:transparent url(your_image); background-attachmentattachedbackground-repeatno-repeat;
background-positionbottom center;
}
</
style>


so, you will have different background for categories.

dheghel

Avatar: dheghel

2008-04-17 05:17

@draver

edit page.tpl and add <div class="body> in a table with one column and one row. Assign to the td class="content" so, we will hve <td class="content">.

Can you write thats complete script here ???

Thx

Back to top
about us | contact