Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Posts
    20
    Plugin Contributions
    0

    help question Image borders and styleshet coding

    I want to place a border around the images in the Product Info page. So I added to the CSS Stylesheet the following:


    #productMainImage img {
    border: 2px inset #7A7A7A;
    border-bottom: 5px inset #000000;
    }
    #productAdditionalImages img {
    border: 2px inset #7A7A7A;
    border-bottom: 5px inset #000000;
    }

    Under each image are the words 'LARGER IMAGE' which I have modified in english.php to include a little magnifying glass as such:

    define('TEXT_CLICK_TO_ENLARGE', '<img src= "http://www.blahblah.com/store/admin/images/magnify.gif" alt="magnify" id="imageMag"> larger image');

    I also placed with it an id="imageMag" so that I can control it with the Stylesheet as such:

    #imageMag img {
    border: none;
    }

    I was expecting this to place the border around the images but not the magnifier. It DIDNT WORK.... it puts the borders around BOTH the image and the little magnifier image too. This same technique is used in the Featured products to no avail.

    I am using 1.3.8a and any help with my coding of the stylesheet or english.php would be appreciated for both the Product Info page and the Featured Products Listing.

    Thanks, PJD

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,686
    Plugin Contributions
    11

    Default Re: Image borders and styleshet coding

    if we could look at www.blahblah.com, it would help
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Apr 2008
    Location
    London
    Posts
    596
    Plugin Contributions
    0

    Default Re: Image borders and styleshet coding

    Also, the images are links, therefore you need something along the lines of:

    #productMainImage img a {

  4. #4
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Image borders and styleshet coding

    You'll probably have to adjust the tpl_xxxxx.php files as well to stop the style from being assigned to elements that you don't want them assigned to. This may require a bit of savvy!

 

 

Similar Threads

  1. Wrapping text around image, and borders not working in IE
    By timmyneal in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 11 Nov 2009, 08:49 AM
  2. 3 problems: varying font sizes, image link borders and body font size
    By JackA in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Dec 2007, 08:28 AM
  3. Image Borders and Tables in 1.3.5
    By Redradar in forum Upgrading from 1.3.x to 1.3.9
    Replies: 19
    Last Post: 17 Aug 2007, 04:37 PM
  4. image borders.
    By rpain in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Apr 2007, 03:52 PM
  5. Categories and Image Borders
    By eediva in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Jun 2006, 03:24 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