Results 1 to 4 of 4
  1. #1
    Join Date
    May 2013
    Location
    California
    Posts
    52
    Plugin Contributions
    0

    Default CSS Image Map Problem

    Hi everyone,

    I am using v1.5.0
    I am trying to create a CSS Image map for my whole header area, the majority is the homepage link, then I have links for social icons. I am at a loss as to what I did wrong.. I would so appreciate if someone could help me.

    I followed the instructions on this post here:
    http://www.zen-cart.com/showthread.p...n-a-main-image to a T, but it broke the layout and the header.png image disappeared..

    Here is the site with the broken layout and missing header.png: http://theposhbox.net/ZenCart/

    Here is what I placed in tpl_header.php in between <!--eof-navigation display--> and <!--bof-branding display-->

    <!--begin social icon image map-->
    <div id="imagemap">
    <a id="home" href="http://www.theposhbox.net/ZenCart/" title="Welcome"><span class="hide">Home</span></a>
    <a id="facebook" href="#" title="Find me on Facebook"><span class="hide">Facebook</span></a>
    <a id="googleplus" href="#" title="Find me on Google Plus"><span class="hide">Google Plus</span></a>
    <a id="pinterest" href="#" title="Find me on Pinterest"><span class="hide">Pinterest</span></a></div>
    <a id="twitter" href="#" title="Find me on Twitter"><span class="hide">Twitter</span></a></div>
    <a id="cart" href="#" title="View your Shopping Cart"><span class="hide">Cart</span></a></div>
    <!--end social icon image map-->

    And I added Display: none; to my #logowrapper

    Then added this to the CSS:

    .hide {display:none;}

    #imagemap {
    background-image: url(../images/header.png) no-repeat;
    height: 372px;
    width: 1085px;
    margin: 0;
    }

    #home {
    float:left;
    position:absolute;
    width: 759px;
    height: 372px;
    margin-left:43px;
    margin-top:1px;
    }

    #facebook {
    float:left;
    position:absolute;
    width: 36px;
    height: 50px;
    margin-left:801px;
    margin-top:1px;
    }

    #googleplus {
    float:left;
    position:absolute;
    width: 36px;
    height: 50px;
    margin-left:850px;
    margin-top:1px;
    }

    #pinterest {
    float:left;
    position:absolute;
    width: 36px;
    height: 50px;
    margin-left:898px;
    margin-top:1px;
    }

    #twitter {
    float:left;
    position:absolute;
    width: 36px;
    height: 50px;
    margin-left:946px;
    margin-top:1px;
    }

    #cart {
    float:left;
    position:absolute;
    width: 36px;
    height: 50px;
    margin-left:992px;
    margin-top:1px;
    }

    Pamela

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: CSS Image Map Problem

    What's the purpose of the # in the href of your social links ?

  3. #3
    Join Date
    May 2013
    Location
    California
    Posts
    52
    Plugin Contributions
    0

    Default Re: CSS Image Map Problem

    Oh, I put that in place of actual links.. do you think that is the problem? I'll take them out and just put in the homepage link and see.. Ok, I put in normal links.. still the layout is broken and header.png is not showing...

  4. #4
    Join Date
    May 2013
    Location
    California
    Posts
    52
    Plugin Contributions
    0

    Default Re: CSS Image Map Problem

    I have a temporary fix for this.. will post about it next so that everyone can use or improve on what I came up with..
    Pamela

 

 

Similar Threads

  1. v150 css problem - my background-image won't show
    By Kathy_ in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 20 May 2012, 11:43 PM
  2. v139a CSS image Alignment problem
    By Jatty in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 19 May 2012, 02:05 AM
  3. Problem with image map
    By bellagraysboutique in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Nov 2009, 11:58 AM
  4. CSS image problem...
    By Rotkale in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Dec 2006, 09:14 AM
  5. CSS Map?
    By batteryman in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 17 Nov 2006, 08:49 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