Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / navMain links bumps my logo outside of logoWrapper...why?? CSS?

navMain links bumps my logo outside of logoWrapper...why?? CSS?

Views: 1,089

Results 1 to 4 of 4
23 Feb 2012, 2:09 AM
#1
alxx345 avatar

alxx345

New Zenner

Join Date:
Jan 2012
Posts:
3
Plugin Contributions:
0

navMain links bumps my logo outside of logoWrapper...why?? CSS?

My first post, just couldn't find the answer anywhere. Thanks for all the great help out there...

My logo in my header gets moved down whenever the navMain links grow to include "shopping cart, log out, checkout, etc." When it does this, the actual logo image is hanging outside of the logoWrapper div.

I cant figure out if it is from the CSS controlling these divs, or if I need to move the code around in the tmp_Header.php file...please help if you can.

my link is here...https://www.milocalfood.com/shop

I repositioned the logo image to slide to the left to make more room, but when you log in and have items in the shopping cart, the links get so long that they push the logo down. Im using firefox's developer tools and can see that the divs are causing the images to stack somehow rather than lay on top of each other. Any ideas?

23 Feb 2012, 11:00 AM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,089
Plugin Contributions:
56

Re: navMain links bumps my logo outside of logoWrapper...why?? CSS?

Using FireFox 10.0.1, I don't see the "growth" that you describe.

23 Feb 2012, 11:37 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: navMain links bumps my logo outside of logoWrapper...why?? CSS?

The only way I can see to fix that is to remove the padding from #logo and the left-right padding from #navMain. The way those elements are coded, they can't 'overlap'.

24 Feb 2012, 3:38 AM
#4
alxx345 avatar

alxx345

New Zenner

Join Date:
Jan 2012
Posts:
3
Plugin Contributions:
0

Re: navMain links bumps my logo outside of logoWrapper...why?? CSS?

I think I've got it working by adding a <br /> to the tmp_header.php therefore moving the "login out, my account, shopping cart, checkout" to a new line. Now there is room so it wont conflict with the logo (unless I were to add a ton of links up there).

I still am unsure why the #navMainWrapper seems to sit on top of #logoWrapper and affect the elements inside. Thanks for the suggestions stevesh. Lansing. Whoop! T.C.