Forums / Templates, Stylesheets, Page Layout / Side navigation bar inconsistency

Side navigation bar inconsistency

Locked

Views: 2,296

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
11 May 2006, 5:05 PM
#1
flevobikeusa avatar

flevobikeusa

New Zenner

Join Date:
May 2006
Posts:
2
Plugin Contributions:
0

Side navigation bar inconsistency

I'm not web designer, so forgive me if I bungle some terms. On my site https://www.flevobikeusa.com, when I go from the static pages to the cart, the side navigation bar changes. The designer told me that he tried, but couldn't get them to size the same. Both setting for the pages and the cart are set at the same width, but don't look the same. It also doesn't have to do with the "view cart" and other buttons, since he removed those as a troubleshooting step, and the problem still occured. Can anyone help me get a consistent look on all my pages? thanks.

11 May 2006, 9:54 PM
#2
kuroi avatar

kuroi

Totally Zenned

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

Re: Side navigation bar inconsistency

As a result of having reviewed your site, I now solemnly vow never to investigate a problem in a table-based layout unless somebody is paying me to do it (and paying well). This is exactly the sort of design that good designers are now abandoning in their droves. Eight nested tables with their associated body, row and cell tags, and embedded, inline CSS, not to mention dozens of standards violations, makes this almost (but not quite) impossible to debug. Perhaps this is why your designer gave up and you had to turn to the Zen Cart community. Rant over.

At least your designer has had the good grace to remove all spurious HTML markup. I do get the sense that he has made a serious attempt to get to the biottom of this. And this in turn has helped me to get most if not all the way to the bottom of your problem. If you try deleting the whole div that contains the view cart button, the two dotted lines above and below, and the search box and button, and you will find that your column closes up to something similar to the rest of your pages. Obviously you won't want to leave it like this, but at least it narrows the problem right down.

This div is your problem. Although everything in side it looks small enough, the div is forcing your table cell to be be wider than it should be. This is because it is subject to three sets of padding.

Firstly the cell itself has 10px all the way round as a result of this line

<table width="146" border="0" cellspacing="0" cellpadding="10">

This is OK and should stay.

Then you have some more inline padding around your search field.

<input type="image" src="http://www.flevobikeusa.com/images/search-button.gif" value="submit" style="padding: 7px">

Although you do want to pad above and below, this also pads to the right and left, which is unnecessary and harmful as it swells the width of your column.

Finally, you have a discreet entry in your stylesheet that adds padding to all paragraph tags

P, ADDRESS { padding: 0.5em; }

and you enclose your dotted line images inside paragraph tags as follows:

<p><img src="http://www.flevobikeusa.com/images/seperator.gif" alt="" height="4" width="127" border="0"></p>

I expect that this is appropriate elsewhere on your site, but not here, so your designer should use a more specific ID reference or class to more precisely target this effect.

To a large extend the search field padding and the paragraph padding occupy the same space. If you remove either one of them alone (a normal diagnostic approach), the other will pick up the slack, and you will notice little or no difference. This is probably why your designer's troubleshooting didn't catch it.

OK. Hopefully that will set you on your way. If you delete this everything before word three of paragraph 2 plus this paragraph, you even have something that you could show your designer to encourage him to finish the job!

Kuroi Web Design and Development | Twitter

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

12 May 2006, 3:45 AM
#3
flevobikeusa avatar

flevobikeusa

New Zenner

Join Date:
May 2006
Posts:
2
Plugin Contributions:
0

Re: Side navigation bar inconsistency

Wow - you spent some time here!. Thank you very much, clearly it wasn't an easy thing to sort out! I will definitely forward this along to the web designer - I know it's been frustrating him too. I'll let you know the result! Thanks again.