Results 1 to 4 of 4
  1. #1
    Join Date
    May 2012
    Posts
    92
    Plugin Contributions
    0

    Idea or Suggestion That tile_back.gif!

    The default size for the tile_back.gif is 11 x 30 pixels. I've been wrestling with it, because my tile_back.gif is a gradient and depending on where it shows up (side boxes, center boxes, nav div), it gets truncated - the sideboxes cut it off at 22 pixels high, for example.

    I made my custom gradient using Paint Shop Pro. When I realized I needed another tile_back.gif for my navigation divider because I have two rows of categories, I needed to make it 50 pixels high. Sideboxes cut that tile_back.gif off at 22 pixels.

    Paint Shop gradients are done to scale, so the "steps" of the gradient are more pixels deep on a 50 pixel high image than on one that is 30 pixels high. So what I had to do is make the standard 30 pixel high .gif, and then cut and paste the gradient (top and bottom) onto taller or shorter versions, so the actual gradient stays the same size.

    So, it takes a series of at least three tile_back.gifs, like this:

    Name:  voodoo_tile_back01.gif
Views: 187
Size:  869 Bytes

    Name:  ex_tile_back04.gif
Views: 205
Size:  894 Bytes

    Name:  ex_tile_back06.gif
Views: 190
Size:  894 Bytes

    And then of course you have to put them in your stylesheet.css at the appropriate places, and play with the width of your navigation divider. But... it solves the problem of having dividers that all look slightly different depending on their size.

    TA DAH!

    CultureClick the baby Zenner

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

    Default Re: That tile_back.gif!

    You could create individual background images for each area, then just edit the image call in the stylesheet to reference a different image name...
    20 years a Zencart User

  3. #3
    Join Date
    May 2012
    Posts
    92
    Plugin Contributions
    0

    Default Re: That tile_back.gif!

    AND, the center box heading reads 29 pixels, so I had to make a 29 pixel tile_back too!

    Here's what the relevant code looks like:

    #navMainWrapper, #navSuppWrapper {
    margin: 0em;
    background-image: url(../images/30pixel_tile_back.gif); (that is to say, 30 pixels HIGH)
    padding: 0.5em 0.2em;
    font-weight: bold;
    color: #ffffff;
    height: 1%;
    }

    ...

    #navCatTabsWrapper {
    margin: 0em;
    background-image: url(../images/50pixel_tile_back.gif);
    padding: 0.5em 0.2em;
    font-weight: bold;
    color: #ffffff;
    height: 50px;
    }

    ...

    #navEZPagesTop {
    background-color: #abbbd3;
    background-image: url(../images/30pixel_tile_back.gif);
    font-size: 0.95em;
    font-weight: bold;
    margin: 0em;
    padding: 0.5em;
    }

    .leftBoxHeading, .rightBoxHeading {
    margin: 0em;
    background-image: url(../images/22pixel_tile_back.gif);
    padding: 0.5em 0.2em;
    }

    .centerBoxHeading {
    margin: 0em;
    background-image: url(../images/29pixel_tile_back.gif);
    padding: 0.5em 0.2em;
    }

    ...

    .productListing-rowheading {
    background-color: #abbbd3;
    background-image: url(../images/30pixel_tile_back.gif);
    height: 3.5em;
    color: #FFFFFF;
    }

  4. #4
    Join Date
    May 2012
    Posts
    92
    Plugin Contributions
    0

    Default Re: That tile_back.gif!

    Quote Originally Posted by schoolboy View Post
    You could create individual background images for each area, then just edit the image call in the stylesheet to reference a different image name...
    Yes, that's exactly what I did. The thing is that if you have an image 150 pixels high, each step in a Paint Shop Pro gradient is 3x wider than the same gradient applied to an image 50 pixels high. So you have to make your 30 pixel image, then cut and paste the top and bottom of the gradient to all the different sizes, so the only thing that is different (in my case, see graphics above) is the black central area. The top and bottom gradient stay the same size, and they don't get truncated out of what the viewer sees.

    Oh goody I figured it out!

    CultureClick the baby Zenner

 

 

Similar Threads

  1. v154 Cannot Change tile_back.gif
    By sperdie in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Jan 2016, 09:52 PM
  2. tile_back.gif
    By blue-grape in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Mar 2010, 08:44 AM
  3. tile_back.gif colors
    By jObE in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Feb 2008, 10:22 PM
  4. Hep with my tile_back.gif's please
    By GGWS in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 May 2007, 02:20 AM
  5. tile_back.gif
    By sammybotz in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Mar 2007, 07:38 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