Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

How to add a thin frame work around category images?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-15-2008, 06:41 AM
  WhiteDoveGifts's Avatar 
WhiteDoveGifts WhiteDoveGifts is offline
 

X-Adept
  
Join Date: Oct 2006
Location: Maarssen, The Netherlands
Posts: 474
 

Default 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
__________________
____________________________
X-Cart Gold 4.1.10

EWD Hosting | CDSEO Pro | One Page Checkout | Smart Search | Telafirma Dynamic Images | X-AOM | Product Importer Pro and many custom mods and tweaks found here...
Reply With Quote
  #2  
Old 10-15-2008, 07:04 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default 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
Reply With Quote
  #3  
Old 10-17-2008, 11:46 PM
  WhiteDoveGifts's Avatar 
WhiteDoveGifts WhiteDoveGifts is offline
 

X-Adept
  
Join Date: Oct 2006
Location: Maarssen, The Netherlands
Posts: 474
 

Default 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
__________________
____________________________
X-Cart Gold 4.1.10

EWD Hosting | CDSEO Pro | One Page Checkout | Smart Search | Telafirma Dynamic Images | X-AOM | Product Importer Pro and many custom mods and tweaks found here...
Reply With Quote
  #4  
Old 10-19-2008, 09:23 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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>
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 10-19-2008, 10:12 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #6  
Old 10-20-2008, 11:57 AM
  WhiteDoveGifts's Avatar 
WhiteDoveGifts WhiteDoveGifts is offline
 

X-Adept
  
Join Date: Oct 2006
Location: Maarssen, The Netherlands
Posts: 474
 

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

Thanks JWait! I will look into the code to see if it works
__________________
____________________________
X-Cart Gold 4.1.10

EWD Hosting | CDSEO Pro | One Page Checkout | Smart Search | Telafirma Dynamic Images | X-AOM | Product Importer Pro and many custom mods and tweaks found here...
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020