CSS Menu will not center - Page 1 -...

User 1995300 Photo


Registered User
31 posts

I just used the css menu creator in html editor (I like it) but I cannot center it int the <div></div> it lives in. It is always left. Anyone know (that is a dumb question LOL) what I am doing wrong?
User 122279 Photo


Senior Advisor
14,461 posts
Online Now

You're probably not doing anything wrong. What you have to do in addition, is to give the <div> the exact dimensions of the menu. Since I'm not good enough at CSS to instruct you, someone else will have to do that.

What I have found that works well, is making a one-cell table, centered and with the width of the menu, and pop the menu into that. Tables are out when not displaying tabular data, I know, but at least my method works.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 38401 Photo


Senior Advisor
10,951 posts

I'm gonna guess, since I don't use that part of the editor myself, that it is creating a CSS code for the menu somewhere and most of the settings for that menu will be in that code which should include positioning. Try looking there and see if you can find that area, if it's not an obvious thing, feel free to post the CSS and we can try to help you find the area for it :)
User 476017 Photo


Ambassador
375 posts

Wolverana wrote:
I'm gonna guess, since I don't use that part of the editor myself, that it is creating a CSS code for the menu somewhere and most of the settings for that menu will be in that code which should include positioning. Try looking there and see if you can find that area, if it's not an obvious thing, feel free to post the CSS and we can try to help you find the area for it :)


Hi Mark
To ad to Jo Ann's reply when use go into the CSS menu creator in html editor the program creates a CSS file which it saves in a folder called CSS. If you look ain you website folder you sould see a sub folder called CSS and in there is a file with the CSS coding. So if you call your menu "testmenu" the file should be testmenu.css
Hope thats clear.
Dave Butler
Yorkshire
England

Old Rishworthians Rugby Union Football club http://www.orrufc.co.uk
Tuxedo Junction Yorkshire Function Band http://www.riley-tuxedojunction.co.uk
The Commons Guest House http://www.thecommons-guesthouse.co.uk
all created with Coffee Cup html editor
User 1995300 Photo


Registered User
31 posts

I quickly tried the table within a div and it worked fine. I am going to read up on CSS coding so I can truly understand it better. For now, the table will do but I am determined to do it correctly

Thanks for the help and tips

Mark
User 1995300 Photo


Registered User
31 posts

I want to say this forum is filled with very gracious and helpful people.

Thank you again

Mark
User 38401 Photo


Senior Advisor
10,951 posts

Yvw, and if you want some areas to check out CSS a good place to start is at
http://w3schools.com

You'll find a large array of tutorials and help there for lots of different coding styles. Enjoy and have fun :)
User 492740 Photo


Registered User
5 posts

I too have just made a css menu using html editor 2009. I even followed the online tutorial here:

http://www.coffeecup.com/help/articles/ … -designer/

It mentions about putting the opening div as this:

<div align="center"> of course with a closing div.

It doesn't work, the tutorial doesn't work and a work around should not be the solution. My menu as Mark above just sits on the left :(

Any solutions anybody??

Many thanks,

Keiron
User 492740 Photo


Registered User
5 posts

I too have just made a css menu using html editor 2009. I even followed the online tutorial here:

http://www.coffeecup.com/help/articles/ … -designer/

It mentions about putting the opening div as this:

<div align="center"> of course with a closing div.

It doesn't work, the tutorial doesn't work and a work around should not be the solution. My menu as Mark above just sits on the left :(

Any solutions anybody??

Many thanks,

Keiron
User 38401 Photo


Senior Advisor
10,951 posts

Did you follow the information above to fix this isue Keiron? You didn't say if you did or not so I need to know so that I know where to start next on helping you :)

I'm going to guess that maybe some of the Tutorials, PDF's and Help files may not be totally up to date on some of the software yet, I could be extremely wrong here and maybe they are and maybe the menu should be working like the tutorial says it should so don't quote me on it lol. It's usually my experience that when a tutorial isn't working it is usually outdated in some way is all.

I couldn't get the menu to work right for me either and seemed so primitive when it did that I haven't really played with it too much myself and will do so very soon maybe for my own personal site to play with it on. I use a menu builder that's an external program by another company which is an awesome program so I usually just use that and haven't taken the time to really get to know the ones by CC yet.

Let me know if you already tried the above solution(s) suggestions and we'll try to go from there :)

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.