Jump to content

Contol width of latest products


Guest

Recommended Posts

In styleTemplates/content/index.tpl you'll find the latest products call, and you'll see the variable {VAL_WIDTH}

As far as I can tell, this is pulled from the setting for number of latest products in ACP.

In that division, following the second anchor tag is the call for the image:

:wacko: So, you presently have:

<img src="{VAL_IMG_SRC}" alt="{VAL_PRODUCT_NAME}" border="0" />




You can specify image sizing there with inline styles, or, what I like to do is create a class in style.css for the division containing all this . . . and move the style info to the stylesheet. Less files to edit whenever you want to make changes in the looks. 
<div style="float: left; text-align: center; width: {VAL_WIDTH}px; height: 250px;">
 



(note: I prolly added the 250 height somewhere along the line)



You can change this to:




<div class="latestProd">




Then in style.css, add:




.latestProd {

     position: relative;

     float: left;

     text-align:center;

     width: xxx;

     height: xxx;

}

.latestProd img {

     width:xxx;

}

Of course, having done this you can add any other properties that tickle your gizzard for latest product images or elements :dizzy:

Link to comment
Share on other sites

Hi All,

I have hacked up the legend skin from three to two column and cannot find where to control width of latest products can anyone help please. I must be overlooking something the skin is at click here

hello, i have problems for view latest product....

you have mod? send by email? msn = [email protected]

help me please

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...