CSS Menus - aligning text

I’m going nuts!

I have a list with some first level and second level items.

I’d like the top levels to be Center aligned, and the sub levels to be left aligned.

It’s partly working but the first menu doesn’t left align the subs - they’re always centered. The others menus play nicely.

I’ve tried forcing things about using styles but no avail.

Any ideas?

tia

Marcel


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have exactly the same problem. Could someone please respond to this.
Thanks.

Steve

On 9/4/2008, at 11:56 AM, Marcel wrote:

I have a list with some first level and second level items.

I’d like the top levels to be Center aligned, and the sub levels to
be left aligned.


Steve Cooper, email@hidden
Mac Assist, Geelong Australia
Web: www.macassist.net.au


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

thanks Steve - thought I was going mad!
[m]


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I tried a quick test in FW Pro 5 and was able to do this. Basically you need to create to styles in the styles menu to accomplish this.

  1. Setup you html menu box as normal and set the list to bulleted.

  2. Apply the CSS Menu action to the box.

  3. Give the box a name such as “menuname” in the inspector pallet without the quotes

  4. Open the Style Edit window and create a new style. In the tag field type #menuname. Choose the paragraph style center alignment.

  5. Create a second style but this time give a name in the name field such as “leftalign” but don’t put anything in tag field. Choose the paragraph style left align.

Click ok out of the styles menu. In the page edit view highlight (select) just the drop down part of the menu text and in the styles pallet give it the style .leftalign

Now when you preview you should see the main menu choices as centered at the sub menu drop downs as left aligned.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sounded good Chuckamuck, I had kinda already gone there, but stepped through your instructions and even created a brand new menu to test on a fresh list…

…but I’m still getting some subs aligning to CENTER.

It’s usually the first menu’s subs that align to center and the others manage to align left.

Any more ideas?

Thanks anyhow.

[m]


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Marcel, I created a REALLY simple (and ugly) sample FW Pro 5 file for you to download. Let me know if this is what you had in mind.

MENU TEST DOWNLOAD


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

BIG Thanks Chuckamuck. Your projects behaves nicely here but I’ve not had time to transfer this to my project yet. Tomorrow.

Many thanks. Will let you know how it goes.

It’s a bit of a faff eh?

[m]


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Why oh why!?

I couldn’t get this method to work in my project :frowning: so I copied my list into your project and setup the styles… some of the menus play nicely, but the first menu, sometimes the last, never left aligns the drop-downs.

I’ve resorted to adding a ‘Home’ menu as my first menu, with no drop-downs.

This is silly

I’m going to start my list again, or maybe copy your object into my project in case there’s somethink wierd going on in my text.

thanks anyhow.

[m]


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I couldn’t get this method to work, either. Within the same CSS menu I have some sub-menu items aligning in the middle and some on the left; as Marcel says, the first ones are aligning in the centre.

Any other suggestions?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

My site is now live… the only work around I’ve found is to make the first and last menus just a top-level menu ie. no drop down.

www.rock.gg

Marcel


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Marcel,

Would you be able to put together a file with just the problem menu on
it so I can take a look at the cause and send it to support please.

Thanks,

Joe

(nice site btw!)

On 15 Apr 2008, at 09:25, Marcel wrote:

My site is now live… the only work around I’ve found is to make
the first and last menus just a top-level menu ie. no drop down.

www.rock.gg

Marcel


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options