Product list numbering
Archived from the Web Auction Discussion forum.
bwilson — Fri Sep 21, 2007 8:05 am
For some strange reason, when there are more than 9 entries to be displayed in my product list page, the tenth item has a number O. beside it, the eleventh has a 1. beside it, etc.
You can see what I mean here
http://www.4charities.ca
Is the item number being truncated somehow?
shannah — Fri Sep 21, 2007 9:21 am
Looks fine in Safari and Firefox on mac. Which browser are you using?
bwilson — Fri Sep 21, 2007 10:30 am
IE7 - Windows
Firefox - Windows looks fine too.
I’ll have to wait to check it later in IE6.
bwilson — Fri Sep 21, 2007 11:59 am
IE6 - Windows also renders the numbers incorrectly.
bwilson — Fri Sep 21, 2007 12:32 pm
Adding the following to the plone.css file corrests the problem. Because of the default left padding / left margin used by the different browsers varies, IE was actually displaying the number partially outside of its’ container. Hence the missing digit.
ol#product-list {
list-style-position: outside;
list-style-type: decimal;
margin-left: 2.5em;
padding-left: 2.5em;
}
Hope this helps someone.
Bob
shannah — Fri Sep 21, 2007 1:11 pm
Thanks for posting the fix, Bob.