/    Sign up×
Community /Pin to ProfileBookmark

Dropdown Menus

Hi there,

I’m trying to integrate some SEO friendly dropdown menus into an existing website design.

The trouble I’m experiencing so far is that the body of the design is aligned centre, and most of the examples I’ve seen thus far use absolute positioning of <div> elements (i.e. the design is left-aligned, so the designer knows to position the dropdown div X pixels).

Is there a good reference I can use for positioning my divs properly?

Thanks

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@toicontienMay 29.2008 — All you should need to do is relatively position the HTML tag that contains the menu.
[code=html]<ul id="nav" style="position: relative;">
<!-- menu items and drop down menus here -->
</ul>[/code]

If any HTML tag is positioned absolutely, and is inside the ul#nav tag, then that absolutely positioned element is positioned in reference to the ul#nav tag.
Copy linkTweet thisAlerts:
@aj2tayloauthorJun 02.2008 — Thanks toicontien
×

Success!

Help @aj2taylo 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.17,
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,
)...