Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2009
    Posts
    53
    Plugin Contributions
    0

    Default Adding images to sidebox headers

    Hi,
    I just read the tutorial on how to replace sidebox headers with images and it works fine, but I want to ADD images to the headers. I know it can be done as you can see here:
    http://osc3.template-help.com/zencart_20585/index.php

    I've searched the forum but to no avail. Can anyone point me in the right direction?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Adding images to sidebox headers

    What they are doing in the style declaration for each sidebox heading is adding a background COLOUR, and then a background IMAGE.

    So, if your wanted your INFORMATION sidebox to have a ladybug image on the left of the box heading text, you would make a little image of the ladybug super-imposed on a background of the same colour as the declared BG colour:

    In their case, they set the background colour to #EF8585

    Their little ladybug image looks like this:



    Then, in their stylesheet, they configure it as follows:

    Code:
    url(../images/left_top_2.gif) no-repeat scroll left top;
    20 years a Zencart User

  3. #3
    Join Date
    Feb 2009
    Posts
    53
    Plugin Contributions
    0

    Default Re: Adding images to sidebox headers

    I probably would never have figured that out on my own. Thank you for your very clear answer schoolboy!

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Adding images to sidebox headers

    Quote Originally Posted by koenvandamme View Post
    I probably would never have figured that out on my own. Thank you for your very clear answer schoolboy!
    Well, I didn't figure it out on my own either! ...

    I use FIREFOX browser with the Web Developer Toolkit add-on. Both obtainable from mozilla.org.

    The web developer toolkit has a vast array of features that allow you to analyse and dissect a web page, and do "off-line" edits to the page source code. I used this to analyse the page of that site, and quickly found out how they were achieving their result.
    20 years a Zencart User

 

 

Similar Threads

  1. How to replace sidebox text headers with images?
    By SimplyDelightful in forum Addon Sideboxes
    Replies: 1
    Last Post: 7 Nov 2009, 02:17 AM
  2. Background Images for Sidebox Headers Not displaying In IE.
    By SurrealDesign in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 Jan 2009, 05:18 PM
  3. Images in sidebox headers
    By heidilw70 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 29 Oct 2008, 07:25 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR