Zen Cart Logo
Forums / Bug Reports / #navMainSearch in Stylesheet

#navMainSearch in Stylesheet

Locked

Views: 3,322

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
13 Sep 2006, 8:53 AM
#1
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

#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;
}

13 Sep 2006, 9:02 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: #navMainSearch in Stylesheet

Many thanks for pointing this out with relevant fix

13 Sep 2006, 9:33 AM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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;
}

13 Sep 2006, 11:11 AM
#4
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: #navMainSearch in Stylesheet

And then one more consideration for the print_stylesheet.css for the future version.

.messageStackWarning, #navMainWrapper, .navMainSearch, #navCatTabsWrapper, #navEZPagesTop,

13 Sep 2006, 11:16 AM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: #navMainSearch in Stylesheet

Very good point seethrou. We all too often forget the print stylesheet. :thumbsup: