/    Sign up×
Community /Pin to ProfileBookmark

Hierarchical Menus on a Centered Page?

I was wondering if it was possible to use Heirarchical Menus on a site which is aligned to the center of the page.

My experience with HMs is that the only way to define an absolute position for them to pop up is to align the buttons to the left of the screen like this:

[url]http://www.roadrunnersports.com/cgi-bin/rrs/rrs/rrHome.jsp[/url]
(I did not design this site)

But what if the page is centered, like this?
[url]http://www.douron.com/[/url]

Can Heirarchical Menus work here too? If so, can anyone provide an example?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@David_HarrisonJan 06.2004 — I'm afraid that I haven't got time to create an example right now and I don't know where there are any. I can provide you with a possible solution though. You can align the menu's where-ever you want on the page by simply doing this:

position:absolute;

left:50%;

margin-left:-200px;

This will align the left hand side of the menu in the direct centre of the page and then you can use a negative left margin to move the menu to a place you deem more suitable.

Perhaps a willing soul with more time on their hands will be able to help out, but if not then you will have to wait until I get back and create an example.
×

Success!

Help @vmarasigan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...