Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Location
    Fort Lauderdale, Florida
    Posts
    8
    Plugin Contributions
    0

    Default How Do I Put A Border Around Product Images?

    OK, I've been searching the Forums since 6 o'clock this morning, and can't seem to find an easy answer. My site is a work in progress, so there's not much there. First, please refer to:

    http://totallycooltees.com/store/ind...in_page=mypage

    How do I go about adding a border to the "3 Drinks" product image I have there, and subsequent other product images as I add them? I don't want a border around the entire center column, or Add To Cart buttons, or anything else...JUST around my product images.

    I'm using the Classic template and have just changed some colors...nothing else.

    Anybody got an answer that doesn't require an entire a complete rewrite like most of the other solutions I've found so far?

    Thanks in advance!

  2. #2
    Join Date
    Aug 2006
    Location
    UK
    Posts
    449
    Plugin Contributions
    0

    Default Re: How Do I Put A Border Around Product Images?

    The above Url is not a product page... those pages have divs thats can be styled with CSS, the page link above has html that needs some tags so they can be styled in your style sheet...

    if you get firefox 3 with the web developer add on, you will be able to find out what parts of your stylesheet need to be changed for the product images.

    You won't need a full rewrite, just a few changes here and there...
    ~Steve~

  3. #3
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    286
    Plugin Contributions
    0

    Default Re: How Do I Put A Border Around Product Images?

    Can you just put a border around your images before you save/upload them? That's what I did for the pet tags on my site:
    http://www.kings-kreations.com/zen/i...=index&cPath=1

    There's probably an easier way in the stylesheet somewhere, but, like you, I couldn't find the "easy" solution.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How Do I Put A Border Around Product Images?

    It appears that you have built a new "define page" named mypage, and made a set of nested tables to output your content. You don't have any useful class or id tags on the elements, so it will be tricky to get a border as is; however, if you add appropriate tags, the border becomes trivially easy. Your current output:
    HTML Code:
    <table width="100%" border="0" cellspacing="2" cellpadding="2"> 
    	<tr>
    		<td class="breadCrumb">&nbsp;</td>
    	</tr> 
    	<tr>
    		<td class="pageHeading" align="center">  <h1>This is mypages heading!</h1> </td>
    	</tr> 
    	<tr>
    		<td class="main">
    
    			<table width="400" border="0" cellspacing="2" cellpadding="2">
    			  <tr>
    			  <td align='center'><a href='index.php?main_page=tshirt&act=showdesign&did=34&view=design'><img src='designs/small/3drinks-150.gif.gif' border='0' width='175' height='175'></a></td>			  </tr>
    			</table>
    			<div align="center" class="tabletxt">
    					
    			</div>		
    		</td>
    	</tr> 
    	<tr>
    
    		<td class="main">  <a href="http://totallycooltees.com/store/index.php?main_page=index"><img src="includes/templates/template_default/buttons/english/button_back.gif" alt="IMAGE_BUTTON_BACK" title=" IMAGE_BUTTON_BACK " width="39" height="15" /></a> </td>
    	</tr> 
    </table>
    The "breadcrumb" part does not belong in this section at all (notice the real breadcrumbs just above the <td> you tagged breadcrumb.)
    It would be much simpler and more flexible if you scrap the old-fashioned tables and just use a few divs which you can style in your stylesheet:
    HTML Code:
    <div id="mypageContent">
    	<h1 class="pageHeading">  This is mypages heading!</h1>
    	<div class="imageLink"><a href='index.php?main_page=tshirt&act=showdesign&did=34&view=design'><img src='designs/small/3drinks-150.gif.gif' border='0' width='175' height='175'></a></div>
    	<div class="text"> </div>
    	<div class="backButton">  <a href="http://totallycooltees.com/store/index.php?main_page=index"><img src="includes/templates/template_default/buttons/english/button_back.gif" alt="IMAGE_BUTTON_BACK" title=" IMAGE_BUTTON_BACK " width="39" height="15" /></a> </div>
    </div><!--mypage content-->
    The border becomes

    #mypageContent .imageLink img {border: 3px inset #aabbcc;}

    Adjust to taste.

 

 

Similar Threads

  1. Any way to put a border around the product listings?
    By MagicMan in forum Customization from the Admin
    Replies: 2
    Last Post: 23 May 2014, 07:50 PM
  2. How do I put a border around the New Products Image ? v 3.9.1g
    By HeyIts007 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 30 Oct 2010, 06:01 AM
  3. remove border around around images (not image border)
    By Otha in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Aug 2010, 06:03 AM
  4. How to put border around category pictures for frontpage display
    By cshart in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Aug 2009, 01:49 AM
  5. How do I put border on some images and no border on others?
    By Sawhorse in forum Templates, Stylesheets, Page Layout
    Replies: 20
    Last Post: 6 Apr 2009, 01:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg