Results 1 to 10 of 33

Hybrid View

  1. #1
    Join Date
    May 2011
    Location
    Sydney, Australia
    Posts
    32
    Plugin Contributions
    0

    Default Re: Aligning Header and Attributes

    Argh, the only way to get the subcategories to align correctly was to put in </br> so I guess they'll have to stay in for now...

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

    Default Re: Aligning Header and Attributes

    In that case try changing it to
    echo '<li>'.'<a href="'.zen_href_link(zen_get_info_page($products_tab->fields['products_id']),$cPath_new. '&products_id=' . $products_tab->fields['products_id']) . '">'.$products_tab->fields['products_name'].'</a><br /></li>';
    At least that will help with the html.
    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
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Aligning Header and Attributes

    You can fix the disappearing subcats by changing the first 0 to -1px (top margin):
    stylesheet.css (line 408)
    Code:
    #navCatTabsDropdown li ul {
        background-color: #AF5980;
        color: #F6D2E4;
        margin: -1px 0 2px 2px;
        position: absolute;
        visibility: hidden;
        width: 215px;
        z-index: 100;
    }
    There appears to be a 1px border around the <ul> and when the cursor is moved slowly over it, the border hides the container from the mouse... strange I know, but the negative top margin fixes the flicker.

  4. #4
    Join Date
    May 2011
    Location
    Sydney, Australia
    Posts
    32
    Plugin Contributions
    0

    Default Re: Aligning Header and Attributes

    dbltoe - thanks for (again) replying and your suggestion! I tried it and for some bizarre reason it went back to the old alignment with everything listing vertically except for the "Clarity Spray" under "Therapeutic Scents" and "Hair" under "Personal Care" which were aligning right. I think I'll just have to live with the bad html...

    gjh42 - you're a genius. I'm sure you get that a lot on here but you really really are! Thanks - your negative margin worked a treat

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

    Default Re: Aligning Header and Attributes

    I guess I'm Gonna be forced to load this on a test site just to find out what they've left out. On a mission
    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.

  6. #6
    Join Date
    May 2011
    Location
    Sydney, Australia
    Posts
    32
    Plugin Contributions
    0

    Default Re: Aligning Header and Attributes

    A man on a mission is a scary thing. I'm sorry to cause you extra work.. it looks ok so I'm not too fussed on the coding. That said, if you need the files or anything else to expedite the process please let me know...

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

    Default Re: Aligning Header and Attributes

    Just a small part of the pie one might think. Au Contraire, Mon Frere!

    A search engine cannot see images, font colors, etc. When spidering a site, they rely on the code. If the code ain't up to snuff the spider can lose its way. If they can't discover your categories or products due to bad code......

    Everyone harps on SEO. Well, Zen Cart comes "out of the shrinkwrap" compliant with html. Accepting the fact that a one-page mod breaks it so terribly is not an option for me.

    Later, I will post my findings in the thread for the mod. My search is not complete as the problem is alluding me. Perhaps the creator can see the glitch that I cannot. I will put a link to my post here, as well.

    Reader's Digest version is that (other than the <br /> outside the <li> tags) there is a problem with the code that produces the product listing for main categories without sub-categories. For now, you can remove all the <br /> tags from every where but
    echo '<li>'.'<a href="'.zen_href_link(zen_get_info_page($products_tab->fields['products_id']),$cPath_new. '&products_id=' . $products_tab->fields['products_id']) . '">'.$products_tab->fields['products_name'].'</a></li><br />';
    Out of the box, the mod needs no changes in css that I can see.
    Last edited by dbltoe; 9 Jun 2011 at 04:25 PM.
    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.

  8. #8
    Join Date
    May 2011
    Location
    Sydney, Australia
    Posts
    32
    Plugin Contributions
    0

    Default Re: Aligning Header and Attributes

    Ahh.. right! Ok so precision is the key here.
    I tried removing all the </br> tags except for the one you mentioned above and the problem still occurred...

    The only thing that may need tweaking in css is the disappearing dropdown as a result of margin for the box.
    gjh42 had a great fix:
    #navCatTabsDropdown li ul {
    background-color: #AF5980;
    color: #F6D2E4;
    margin: -1px 0 2px 2px;
    position: absolute;
    visibility: hidden;
    width: 215px;
    z-index: 100;
    }

 

 

Similar Threads

  1. Product Info Page - Aligning issues regarding Shopping Cart and Attributes.
    By Treasuresbycaz in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Jul 2009, 01:56 PM
  2. aligning attributes and add to cart
    By MachaNeko in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 May 2008, 06:44 PM
  3. aligning icons/buttons in header and footer
    By elishama3 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 1 Mar 2008, 10:20 PM
  4. Aligning header/center and footer ?
    By Vixxxen in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Nov 2006, 10:30 PM
  5. Aligning Attributes To The Right
    By Galeo Designs in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 1 Jul 2006, 01:54 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