Author Topic: Centering the menu?  (Read 6440 times)

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Centering the menu?
« 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!

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4463
  • Gender: Male
Re: Centering the menu?
« Reply #1 on: December 03, 2009, 05:31:50 PM »
Try this

margin: 0 auto;

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: Centering the menu?
« Reply #2 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!

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4463
  • Gender: Male
Re: Centering the menu?
« Reply #3 on: December 03, 2009, 06:17:00 PM »
If you can give us an url to look, or is it a local installation?

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: Centering the menu?
« Reply #4 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

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4463
  • Gender: Male
Re: Centering the menu?
« Reply #5 on: December 03, 2009, 07:18:18 PM »
I will be going to have a look
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4463
  • Gender: Male
Re: Centering the menu?
« Reply #6 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
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline kweitzel

  • WebsiteBaker Org e.V.
  • **
  • Posts: 6983
  • Gender: Male
Re: Centering the menu?
« Reply #7 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

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: Centering the menu?
« Reply #8 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]

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4463
  • Gender: Male
Re: Centering the menu?
« Reply #9 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]
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: Centering the menu?
« Reply #10 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!

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: Centering the menu?
« Reply #11 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

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4463
  • Gender: Male
Re: Centering the menu?
« Reply #12 on: December 04, 2009, 07:47:37 PM »
Kann mir jemand bei der Übersetzung helfen, ich weiss nicht was er will.

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: Centering the menu?
« Reply #13 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]

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4463
  • Gender: Male
Re: Centering the menu?
« Reply #14 on: December 04, 2009, 08:20:31 PM »
ah ok, i think i can solved it

Dietmar
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: Centering the menu?
« Reply #15 on: December 04, 2009, 08:38:28 PM »
I would be really gratefull if you can!

Thx!

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4463
  • Gender: Male
Re: Centering the menu?
« Reply #16 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
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: Centering the menu?
« Reply #17 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

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: Centering the menu?
« Reply #18 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

In theory, there is no difference between theory and practice. But, in practice, there is.

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4463
  • Gender: Male
Re: Centering the menu?
« Reply #19 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
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline Boudi

  • Posts: 1190
  • Gender: Male
  • //o_-\\
    • Yze Webdesign
...:: Bake the Unbakable ::...