Results 1 to 5 of 5
  1. #1
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default #navMainSearch in Stylesheet

    It seems that, for the v1.3.x, there is mis-matched id in the stylesheets of template_default and classic.

    The id of #navMainSearch should be a class of .navMainSearch of which in the template file of tpl_header.php.


    For reference, in the v1.3.5,
    in the stylesheet of template_default at about line no. 272
    and
    in the stylesheet of classic at about line no. 311

    #navMainSearch, #navCategoryIcon, .buttonRow, #indexProductListCatDescription {
    margin: 0.5em;
    }
    They should be changed to
    .navMainSearch, #navCategoryIcon, .buttonRow, #indexProductListCatDescription {
    margin: 0.5em;
    }
    A New Starter again

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: #navMainSearch in Stylesheet

    Many thanks for pointing this out with relevant fix

  3. #3
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: #navMainSearch in Stylesheet

    Although this will work with current versions of Zen Cart, it is really the tpl_header,php file that is wrong and the stylesheet that is correct. Line 64 of the template file should more properly start
    <div id="navMainSearch" class="forward"> ...
    To avoid the problems that would be associated with this being corrected in future versions of Zen Cart, I would recommend adding .navMainSearch rather than replacing #navMainSearch. E.g.
    #navMainSearch, .navMainSearch, #navCategoryIcon, .buttonRow, #indexProductListCatDescription {
    margin: 0.5em;
    }
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  4. #4
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: #navMainSearch in Stylesheet

    And then one more consideration for the print_stylesheet.css for the future version.
    .messageStackWarning, #navMainWrapper, .navMainSearch, #navCatTabsWrapper, #navEZPagesTop,
    A New Starter again

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: #navMainSearch in Stylesheet

    Very good point seethrou. We all too often forget the print stylesheet.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. aligning the navMainsearch?
    By 1kell in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Feb 2009, 09:23 AM
  2. navmainsearch width>?
    By 1kell in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Nov 2008, 10:45 AM
  3. Move Search form in NavMainSearch
    By estrat in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 15 Oct 2008, 04:40 PM
  4. Question on NavMainSearch background Image
    By estrat in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 6 Oct 2008, 08:43 PM
  5. Question on NavMainSearch background Image
    By estrat in forum Basic Configuration
    Replies: 0
    Last Post: 7 Sep 2008, 06:27 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