• Skip to main contentSkip to content
Tyssen Design
  • Tyssen Design home
  • Brisbane web design & development services
  • Brisbane website design & development work
  • About Tyssen Design
  • Web design & development articles
  • Contact Tyssen Design

March, 2007 archive

Centering a dropdown menu

Fri, Mar 2, 2007 @ 8:08 pm47 comments

Recently, I needed to create a centered version of the Suckerfish dropdown menu and realised that some significant modifications were going to be needed. This is because the method for getting the top level list items to sit in a row, on the same horizontal plane, is to use float: left. However, when you float elements, you can’t centre them unless you give them a width and use auto left and right margins.

More on Centering a dropdown menu

Posted in CSS | HTML

  • Subscribe to this site

    Subscribe by email

  • Number of subscribers provided by Feedburner
    • View my profile on LinkedIn
    • Follow @tyssen on Twitter
    • ExpressionEngine Pro Network Member
  • Recent posts

    • I’ve got a new blog!

    • Adding a link list to TinyMCE with ExpressionEngine

    • Redesigning ExpressionEngine sites

    • Web design ‘pre-flight’ checklist

    • Calling a WordPress loop from inside a WordPress loop

    • The @font-face snowball

    • Site updated to Microformats Value Class Pattern

    • Removing unwanted fields from TinyMCE’s image and link popup windows

    • Fetching posts in WordPress and ExpressionEngine with jQuery and AJAX

    • Which is better for search engines: plain text or alt attributes?

  • Categories

    • Accessibility
    • Browsers
      • Mobiles
    • CMS
      • ExpressionEngine
      • Wordpress
    • CSS
    • Ecommerce
    • FAQs
    • HTML
      • Forms
    • Javascript
      • jQuery
    • Legal issues
    • PHP
    • Search Engine Optimisation
    • Semantic web
    • Typography
    • Web Development
  • Tags

  • Archive

  • Home
  • Services
  • Work
  • About
  • Writing
  • Contact
  • Legal
  • Accessibility
  • SiteMap

© Tyssen Design 2005-2012 – Brisbane website design and development. ABN: 30 612 990 232

  • Entries
  • Comments