X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to add a thin frame work around category images? (https://forum.x-cart.com/showthread.php?t=42986)

WhiteDoveGifts 10-15-2008 06:41 AM

How to add a thin frame work around category images?
 
Hi,

Does anyone know how I can add a thin frame work around each category image?

Thanks for helping out in advance!

Cheers,
Nico

Yurij 10-15-2008 07:04 AM

Re: How to add a thin frame work around category images?
 
Quote:

Originally Posted by WhiteDoveGifts
Hi,

Does anyone know how I can add a thin frame work around each category image?

Thanks for helping out in advance!

Cheers,
Nico


What about this? :)

PHP Code:

<div style="border: 1px solid #000000;">
         
cat image
</div


WhiteDoveGifts 10-17-2008 11:46 PM

Re: How to add a thin frame work around category images?
 
Hi Yurij,

Sorry, I used a wrong title and description for the border I need. Actually I need a piece of code that will add a thin border for each subcategory picture. I am using this mod for subcategory in columns with descriptions and icons:

http://forum.x-cart.com/showthread.php?t=3848

Cheers,
Nico

JWait 10-19-2008 09:23 AM

Re: How to add a thin frame work around category images?
 
In the other thread you referenced, it looks like this is what calls the icon image....
Code:

<td valign="top" width="70" align="center">
        <a class="alt" href="home.php?cat={ $subcategories[cat_num].categoryid }">
        [img]../icon.php?categoryid={$subcategories[cat_num].categoryid}[/img]
        </a>
        </td>
        <td align=left><a class="alt" href="home.php?cat={ $subcategories[cat_num].categoryid }">
        {$subcategories[cat_num].category|escape}</a>

BTW - it looks like that code may be corrupted, the [img] tags should probably be <img>.

Anyway, what if you added a class to your stylesheet named maybe imgicon and have border: 1px solid #000000; as the properties?
Maybe something like...
<a class="alt" href="home.php?cat={ $subcategories[cat_num].categoryid }"><font class="imgicon"><img src../icon.php?categoryid={$subcategories[cat_num].categoryid}>
</font></a>

JWait 10-19-2008 10:12 AM

Re: How to add a thin frame work around category images?
 
My bad, I was looking at the code at the start of the thread. At any rate, making the imgicon class and adding it as a font class to the image call should do what you want.

WhiteDoveGifts 10-20-2008 11:57 AM

Re: How to add a thin frame work around category images?
 
Thanks JWait! I will look into the code to see if it works :)


All times are GMT -8. The time now is 03:33 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.