Forums / Bug Reports / #navMainSearch in Stylesheet

#navMainSearch in Stylesheet

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

seethrou

Totally Zenned

Join Date:
May 2004
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, 09:02
#2
misty avatar

misty

Inactive

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

Re: #navMainSearch in Stylesheet

Many thanks for pointing this out with relevant fix
13 Sep 2006, 09:33
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

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
#4
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
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
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Posts:
10,475
Plugin Contributions:
9

Re: #navMainSearch in Stylesheet

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