Page 1 of 1

aligning menu in wireframe1colwnews [solved]

Posted: Mon Oct 29, 2007 9:51 am
by ploss1701
Hey everyone,

I am freaking on a "probably too easy to solve problem", but it just won't work or I just do everything wrong... sigh  :-[
I want to align (center) the menu in the    wireframe1colwnews basic template. The padding (left) is set to 85px.... fine, now I want to center the menu. I tried different things, the last killing the left padding and adding a text-align:center to the #menu_wrapper. It just won't work....
Can somebody give me a hint ?

Thanks so much !

Philipp

Re: aligning menu in wireframe1colwnews

Posted: Mon Oct 29, 2007 3:12 pm
by Dr.CSS
You will have to give the menuwrapper a width size then use margin: 0px auto, the auto margin only works if a width is called...

Re: aligning menu in wireframe1colwnews

Posted: Mon Oct 29, 2007 8:46 pm
by ploss1701
Hey there,

thanks for the hint... i did the following:

div#menu_horiz{width:95%;margin: 3px auto;padding:3px}
div#wrapper{height: 22px;padding: 0}
div#menuwrapper{width:100%;margin:0px auto;text-align:center}

With or without the text-align..... the menu is aligned left.... sigh....

I just don't get it... :-(

Thanks
Philipp

Re: aligning menu in wireframe1colwnews

Posted: Tue Oct 30, 2007 3:15 am
by Dr.CSS
The width was supposed to be the minmum you needed for the menu to fit in, get it as close as you can, then the margin auto will work, if it's 100% there is nothing to margin off of...

Margin pushes on the outside padding pushes inside... and no padding won't take auto... ;)

Re: aligning menu in wireframe1colwnews [solved]

Posted: Thu Nov 01, 2007 9:06 am
by ploss1701
oh yeah, there is lots more to learn I guess... sigh  :-\

Thanks for the help  ;)