Forums / Templates, Stylesheets, Page Layout / Header alignment problem

Header alignment problem

Locked

Started by panuma on 10 Jun 2010, 2:41 PM · Views: 882

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
10 Jun 2010, 2:41 PM
#1
panuma avatar

panuma

New Zenner

Join Date:
Jun 2010
Location:
Buenos Aires
Posts:
48
Plugin Contributions:
0

Header alignment problem

Hi all,

This is my website on the 1.3.8 version using freetemplate1: https://www.weezones.com/zencart

I'd like to have the "home - login" (on the left) aligned with the languages and currencies (on the right), right after the topmenubar and before the headerpic.

Couldn't figure out after hours of research.. I guess it's a matter of correctly editing the tpl_header but don't know how :)

Thanks in advance for your help!

Panuma

10 Jun 2010, 3:26 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Header alignment problem

Find #navMain in the stylesheet and add the red part:

#navMain {
padding-right: 7px;
padding-top: 5px;
float:left;
}

Then find #navCurrenciesWrapper and move it by changing the number of px - should be around top:63px; and **right:440px;, **but you'll have to fiddle with it to get it the way you want.

#navCurrenciesWrapper {
color: #bbb;
position: absolute;
top: 8px;
right: 10px;

}

10 Jun 2010, 4:03 PM
#3
panuma avatar

panuma

New Zenner

Join Date:
Jun 2010
Location:
Buenos Aires
Posts:
48
Plugin Contributions:
0

Re: Header alignment problem

Thanks Steevesh!

adding float:left worked well. I put the same code for the NavCurrencies with float:right instead. It kind of workds but how come NavMain "follows" the headerpic and NavCurrencies does not?
(I don't want NavMain to follow, I want it to stay up, right after the topmenubar).

And last thing do you see the topmenubar separations, where can I adjust their heights?

Many many thanks

10 Jun 2010, 5:47 PM
#4
stevesh avatar

stevesh

Black Belt

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

Re: Header alignment problem

Don't float navCurrencies - just change the red parts to move it left and down. It's positioned absolutely, so changing the top:8px to top:63px; and the right:10px; to right:440px;. What you're doing is placing that section 63px down and 440px left from the upper right corner.

You may have to remove the top:100px; from #headerpix.

10 Jun 2010, 6:28 PM
#5
panuma avatar

panuma

New Zenner

Join Date:
Jun 2010
Location:
Buenos Aires
Posts:
48
Plugin Contributions:
0

Re: Header alignment problem

Ok now the NavCurrencies is well placed, but if I don't give headerpic top:50px, the image hides NavCurrencies. On the other hand NavMain comes on top of headerpic, but I'd like to have it before headerpic...

Sorry for the trouble

11 Jun 2010, 7:20 PM
#6
panuma avatar

panuma

New Zenner

Join Date:
Jun 2010
Location:
Buenos Aires
Posts:
48
Plugin Contributions:
0

Re: Header alignment problem

Anyone an idea?

14 Jun 2010, 4:39 PM
#7
panuma avatar

panuma

New Zenner

Join Date:
Jun 2010
Location:
Buenos Aires
Posts:
48
Plugin Contributions:
0

Re: Header alignment problem

Hi all,

Anybody knows how to fix the following header alignment problem?

I just want to have the home - login and the languages & currencies aligned after the topmenubar and before the headerpic.

I don't know why now the navMain comes on top of headerpic and not before...

Thanks a lot for your help!

14 Jun 2010, 5:11 PM
#8
stevesh avatar

stevesh

Black Belt

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

Re: Header alignment problem

According to your source (and Web Developer) #navMain is inside the headeerpic div, so you won't be able to move them relative to each other.

I would try to fix that, using the Developers Tool Kit to see where the code is. You might want to get rid of #headerpic altogether and just use the regular Zencart header background image placement.

14 Jun 2010, 10:46 PM
#9
panuma avatar

panuma

New Zenner

Join Date:
Jun 2010
Location:
Buenos Aires
Posts:
48
Plugin Contributions:
0

Re: Header alignment problem

thanks for the insight, I moved NavMain away from headerpic div and played around with the stylesheet to get what I wanted.
I'm happy with it.

thank you