WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Roych on December 03, 2009, 05:15:24 PM

Title: Centering the menu?
Post by: Roych on December 03, 2009, 05:15:24 PM
Hi

I'm using TEMPLERON template and I would like my menu to be in center of the page and not on the left as in default.
I have tried to change this in base.css but it's not working for me.
I can change it to right or left but not center.

float:right;
float: left;
Thoes two are working fine


float:inherit;
float:none;
those two are not! I tried center also!

I'm not very good at php and css, so I'm not sure what to do exatcly.

Is there something I'm doing wrong or

someone?

Thanx!
Title: Re: Centering the menu?
Post by: Luisehahne on December 03, 2009, 05:31:50 PM
Try this

margin: 0 auto;

Dietmar
Title: Re: Centering the menu?
Post by: Roych on December 03, 2009, 06:14:33 PM
Hi

Thx for help!

Still doesent work. It center's the menu but the links are not in the line, but are messy like one word below the other!

any sugesstion?

thx!
Title: Re: Centering the menu?
Post by: Luisehahne on December 03, 2009, 06:17:00 PM
If you can give us an url to look, or is it a local installation?

Dietmar
Title: Re: Centering the menu?
Post by: Roych on December 03, 2009, 07:08:05 PM
here is the link!

http://www.feel-fun.com/leon/

The page is still under construction so be gentle ;)

I have applyed the ( margin: 0 auto; ) so you can see what happens!

thx
Title: Re: Centering the menu?
Post by: Luisehahne on December 03, 2009, 07:18:18 PM
I will be going to have a look
Title: Re: Centering the menu?
Post by: Luisehahne on December 03, 2009, 07:30:53 PM
Sorry, but terrible, why don't you use the showmenu2? Can you zip and post the template here?

Dietmar
Title: Re: Centering the menu?
Post by: kweitzel on December 03, 2009, 07:54:05 PM
Please have a look here and adapt your css: http://css.maxdesign.com.au/listamatic/horizontal16.htm

cheers

Klaus
Title: Re: Centering the menu?
Post by: Roych on December 03, 2009, 08:01:09 PM
I know it's terrible, but this is the wish of my friend, he likes the look of that colorfull webpage!

Here is the template:

[gelöscht durch Administrator]
Title: Re: Centering the menu?
Post by: Luisehahne on December 04, 2009, 02:20:07 AM
Hi,

after hard work, i finished it, pls download, install and try, think the rest of styling is not difficult for you. The problem with template is that it were made for WebsiteBaker 2.6, now it's ready for 2.7 and 2.8. Pls inform here, if all is ok

Dietmar

[gelöscht durch Administrator]
Title: Re: Centering the menu?
Post by: Roych on December 04, 2009, 07:08:44 PM
Thx,

sorry but it's still not working when I try to center the menu! it's still messy!

I want my menu to be in the horizontal line but in the width center of the page!

thx!
Title: Re: Centering the menu?
Post by: Roych on December 04, 2009, 07:15:16 PM
Only thing that works is this.
When I change these parameters in 3-topmenu.css

ul#menu li {
    float: left;


or


ul#menu li {
    float: right;


everything else messes up the look of the menu

thx
Title: Re: Centering the menu?
Post by: Luisehahne on December 04, 2009, 07:47:37 PM
Kann mir jemand bei der Übersetzung helfen, ich weiss nicht was er will.

Dietmar
Title: Re: Centering the menu?
Post by: Roych on December 04, 2009, 08:18:24 PM
Quote
Kann mir jemand bei der Übersetzung helfen, ich weiss nicht was er will.

Dietmar

I'm placing the photo of what I want! Sorry for not beeing clear in my explanation in my last posts!
And sry my english!



Hope this helps, I did it in photoshop!

[gelöscht durch Administrator]
Title: Re: Centering the menu?
Post by: Luisehahne on December 04, 2009, 08:20:31 PM
ah ok, i think i can solved it

Dietmar
Title: Re: Centering the menu?
Post by: Roych on December 04, 2009, 08:38:28 PM
I would be really gratefull if you can!

Thx!
Title: Re: Centering the menu?
Post by: Luisehahne on December 04, 2009, 11:23:00 PM
i try something, but i can't solve, think that is impossible because float:left is set. Without the float, style is destroid.

Dietmar
Title: Re: Centering the menu?
Post by: Roych on December 04, 2009, 11:37:55 PM
Yes I have noticed that. Everything I've tried was useles!

Anybody else out there??  :?

Thx anyway! ;)

Roych
Title: Re: Centering the menu?
Post by: BerndJM on December 05, 2009, 02:40:45 AM
Hi,

if a float: left (or right) is set and you change this and after this change the remaining layout is destroyed, there are two possibilities to solve this:

- set in the template a "blind div" after the part you will change with:
Code: [Select]
<div style="clear:both"></div>
or (maybe and):
- set in the next element, following the changed, again a float:left in the css file.

Regards Bernd

Title: Re: Centering the menu?
Post by: Luisehahne on December 05, 2009, 03:07:13 AM
Hi Bernd,

i already try this, no effect. Or may be i put it on the wrong place?

Dietmar
Title: Re: Centering the menu?
Post by: Boudi on June 01, 2010, 09:54:34 PM
https://forum.WebsiteBaker.org/index.php/topic,18405.0.html