19. January 2009 by Janko in Tutorials | tags: ,

vimeo

I really like the top navigation implemented on Vimeo.com. First time I saw it I wanted to recreate it. And this is exactly what I am going to do in this tutorial.

What I like the most is the menu that drops down when you hover search box. It offers you different search options that you can choose and narrow your search.

Download source View demo

The base for this tutorial is simple CSS drop down menu based on unordered list. The structure is visually described in the image below:

sample1

As you can see we have UL with four items. The first one is logo with short submenu. Then comes login link, Help link with submenu and search item with submenu. Each submenu is being shown when hover corresponding link.

So this is the base structure that we’ll use here:

<ul id="menu">
    <li class="logo">
        <img style="float:left;" alt="" src="menu_left.png"/>
        <ul id="main">
            <li>Welcome to <b>Create Vimeo-like top navigation</b> tutorial!</li>
        </ul>
    </li>
    <li><a href="#">Login</a>
    </li>
    <li><a href="#">Help</a>
        <ul id="help">
            <li><a href="#">General help</a></li>
            <li><a href="#">Posts</a></li>
            <li><a href="#">Pages</a></li>
        </ul>
    </li>
    <li class="searchContainer">
        <div>
        <input type="text" id="searchField" />
        <img src="magnifier.png" alt="Search" onclick="alert('You clicked on search button')" /></div>
        <ul id="search">
            <li><input id="cbxAll" type="checkbox" />All</li>
            <li><input id="Articles" type="checkbox" />Articles</li>
            <li><input id="Tutorials" type="checkbox" />Tutorials</li>
            <li><input id="Reviews" type="checkbox" />Reviews</li>
            <li><input id="Resources" type="checkbox" />Resources</li>
        </ul>
    </li>
</ul>
<img style="float:left;" alt="" src="menu_right.png"/>

And CSS styles:

/* menu */
#menu{ margin:0px; padding:0px; list-style:none; color:#fff; line-height:45px; display:inline-block;
    float:left; z-index:1000; }
#menu a { color:#fff; text-decoration:none; }
#menu > li {background:#172322 none repeat scroll 0 0; cursor:pointer; float:left; position:relative;
    padding:0px 10px;}
#menu > li a:hover {color:#B0D730;}
#menu .logo {background:transparent none repeat scroll 0% 0%; padding:0px;
    background-color:Transparent;}
/* sub-menus*/
#menu ul { padding:0px; margin:0px; display:block; display:inline;}
#menu li ul { position:absolute; left:-10px; top:0px; margin-top:45px; width:150px; line-height:16px;
    background-color:#172322; color:#0395CC; /* for IE */ display:none; }
#menu li:hover ul { display:block;}
#menu li ul li{ display:block; margin:5px 20px; padding: 5px 0px;  border-top: dotted 1px #606060;
    list-style-type:none; }
#menu li ul li:first-child { border-top: none; }
#menu li ul li a { display:block; color:#0395CC; }
#menu li ul li a:hover { color:#7FCDFE; }
/* main submenu */
#menu #main { left:0px; top:-20px; padding-top:20px; background-color:#7cb7e3; color:#fff;
    z-index:999;}
/* search */
.searchContainer div { background-color:#fff; display:inline; padding:5px;}
.searchContainer input[type="text"] {border:none;}
.searchContainer img { vertical-align:middle;}

But as you can see this is far away from the good looking Vimeo navigation. It is functional, of course, but we need that pretty rounded corners everywhere. The solution is actually simple and it is described in the image below:

sample2

Now that looks fine. What we actually did can be seen in the code below. Let’s take Help submenu for the example:

<li><a href="#">Help</a>
    <ul id="help">
        <li>
            <img class="corner_inset_left" alt="" src="corner_inset_left.png"/>
            <a href="#">General help</a>
            <img class="corner_inset_right" alt="" src="corner_inset_right.png"/>
        </li>
        <li><a href="#">Posts</a></li>
        <li><a href="#">Pages</a></li>
        <li class="last">
            <img class="corner_left" alt="" src="corner_left.png"/>
            <img class="middle" alt="" src="dot.gif"/>
            <img class="corner_right" alt="" src="corner_right.png"/>
        </li>
    </ul>
</li>

We added two absolutely positioned images inside the first LI that will create “shoulders”. Also, we added one more LI to the end of the list that contains two absolutely positioned corners and one 1x1px stretched image to fill the empty space. And this is the additional styles that you need:

/* corners*/
#menu .corner_inset_left { position:absolute; top:0px; left:-12px;}
#menu .corner_inset_right { position:absolute; top:0px; left:150px;}
#menu .last { background:transparent none repeat scroll 0% 0%; margin:0px; padding:0px;
    border:none; position:relative; border:none; height:0px;}
#menu .corner_left { position:absolute; left:0px; top:0px;}
#menu .corner_right { position:absolute; left:132px; top:0px;}
#menu .middle { position:absolute; left:18px; height: 20px; width: 115px; top:0px;}

Now we have functional AND good looking top navigation. This might be optimized, so if you have free time or you need it for your projects, step on it. Or you can use this one as is :)

Did you implement something similar in any project? Do you find this one useful for some of your future projects?

If you liked this article why don't you share it:

Create Vimeo-like top navigation (via @jankowarpspeed) Share this on StumbleUpon Share this on delicious Share this on Digg Share this on Dzone Share this on DesignBump Send this to friend

Comments

Pingbacks and trackbacks

  1. Trackback from Design Bump Story on DesignBump.com
  2. Pingback from cosassencillas.com Tutorial para crear un menú de navegación similar al de Vimeo | Cosas sencillas
  3. Pingback from designm.ag DesignM.ag » Create Vimeo-like top navigation
  4. Pingback from kreativuse.com Create Vimeo-like top navigation - Kreativuseâ„¢ - Creative Resources and Inspirations
  5. Pingback from refresherate.com refresherate.com » Blog Archive » Vimeo Navigation Clone
  6. Trackback from CREAMU Vimeoライクなトップナビゲーションの作り方
  7. Pingback from dbphotofactory.com Gera Yeremin’s Mind » Create Vimeo-like top navigation
  8. Pingback from devsnippets.com » 10 Brilliant Multi Level Navigation Menu Techniques
  9. Pingback from jordandots.com jordandots » 10 brilliant Multi Level Navigation Menu Techniques
  10. Pingback from visual-blast.com Vimeo-like Top Menu
  11. Pingback from isopixel.net 10 Técnicas para desarrollar menús de navegación  | Isopixel
  12. Pingback from fondosdepantalla.themodeproductions.com Fondos de Pantalla » Blog Archive » 10 Técnicas para desarrollar menús de navegación
  13. Pingback from mantistechs.com 10 Técnicas para desarrollar menús de navegación | dominios, diseño web, ecommerce - Mantis Technology Solutions Blog
  14. Pingback from i386.pub.ro Vimeo-Like Top Menu Design | i386.pub.ro
  15. Pingback from nrdlabs.com Menù di Vineo per il tuo Sito Web « nrdLabs
  16. Pingback from joe.hana.at How to Create a Vimeo-like Top Navigation Menu | Joe Hana
  17. Pingback from steveify.com Steveify » Blog Archive » Create Vimeo-like top navigation
  18. Pingback from pixey.de pixey.de » freie Navigation wie bei Vimeo.com » Css, demo, Download, Free, Navigation, Script, vimeo
  19. Pingback from designingwebinterfaces.com 30 Essential Controls
  20. Pingback from xyberneticos.com Crear un Menu de navegación al estilo de Vimeo.com
  21. Pingback from extremisimo.com Crea un menú horizontal como el de Vimeo.com
  22. Pingback from alyenstudio.com Criar um Menu de navegação ao estilo de Vimeo.com | Alyen Studio .com
  23. Trackback from Morning Break Best of the web - January 2009
  24. Pingback from theresaneil.wordpress.com Designing for RIAs: 30 Essential Controls « Theresaneil’s Weblog
  25. Pingback from theresaneil.wordpress.com 30 Essential Controls « Theresaneil’s Weblog
  26. Pingback from webgrafismo.com CSS Menu com estilo Vimeo | Webgrafismo
  27. Pingback from devblab.net 10 Brillantes Tecnicas de Menus Multinivel
  28. Pingback from privats.ru Делаем меню как на Vimeo | Блог Безумного Админа
  29. Pingback from 0n8.info 0 n 8 = ? » 10 Mükemmel Çoklu Seviye Menü TekniÄŸi
  30. Pingback from problog.gen.tr 10 Mükemmel Çoklu Seviye Menü Tekniği - Problog [T.C.]
  31. Pingback from sosyal-im.com Sosyal İm - Teknoloji haberleri » 10 Mükemmel Çoklu Seviye Menü TekniÄŸi » Blog ArÅŸivi » 10 Mükemmel Çoklu Seviye Menü TekniÄŸi
  32. Pingback from baybedava.wordpress.com 10 Mükemmel Çoklu Seviye Menü TekniÄŸi « Bay Bedava - Netten BaÅŸlıklar
  33. Pingback from kumsaati.net 10 Mükemmel Çoklu Seviye Menü Tekniği | kumsaati | XHTML, CSS, Creative, AJAX, Design, Tutorials, Web 2.0, Web 3.0,
  34. Pingback from affiliatereview.nl Tutorial: Vimeo navigatie menu | Test
  35. Pingback from pcandweb.com 20+ Excellent Awesome Javascript And CSS Menus | PCandWEB
  36. Pingback from sonichtml.com 30个特殊的CSS导航技术 « SonicHtml工作室- PSD转HTML / XHTML,CSS / W3C验证 / 多浏览器支持 / WordPress模板 / Joomla模板
  37. Pingback from theledlightingcompany.co.uk | Simon Wells
  38. Pingback from burningfav.wordpress.com 30个特殊的CSS导航技术 « Burning Fav’s Blog
  39. Pingback from yodspica.eu 30 Exceptional CSS Navigation Techniques | Blog YODspica Ltd
  40. Pingback from livefont.wordpress.com 30 Exceptional CSS Navigation Techniques « Livefont Interactive
  41. Pingback from yyq123.wordpress.com links for 2009-04-22 « 语虚
  42. Pingback from webdesignchennai.wordpress.com 30 CSS Navigation Techniques « Webdesignchennai’s Blog
  43. Pingback from webdesignledger.com 15 Excellent jQuery Navigation Techniques and Solutions | Web Design Ledger
  44. Pingback from basit.me 15 Excellent jQuery Navigation Techniques and Solutions - Basit - Live Your Life with Inspiration
  45. Pingback from yaboke.com 模仿Vimeo顶部的css菜单 | 痞味
  46. Pingback from chroniquesduweb.com links for 2009-05-10 — Chroniques du web
  47. Pingback from rat86.netsons.org Tecniche di navigazione con CSS - Caputo’s blog - Informatica, tecnologia, programmazione, fai da te, papercraft e papertoy
  48. Pingback from andrewspittle.net Bookmarks for April 20th through April 21st » Diversions
  49. Pingback from dogfeeds.com 36 Eye-Catching Jquery Navigation Menus « Dogfeeds——IT Telescope
  50. Pingback from neurosoftware.ro 36 Eye-Catching Jquery Navigation Menus | Programming Blog
  51. Pingback from news.joyjs.com 36个引人注目的导航菜单(上) | 新闻频道
  52. Trackback from WebBlogNet 15 Excellent jQuery Navigation Techniques and Solutions
  53. Pingback from smashingapps.com 21 Stylish CSS/jQuery Solutions To Beautify Your Web Designs @ SmashingApps
  54. Pingback from seyfi.org 21 Stylish CSS/jQuery Solutions To Beautify Your Web Designs | WORDPRESS-TEMPLATES-PLUGINS-RSS | 21 Stylish CSS/jQuery Solutions To Beautify Your Web Designs >>>
  55. Pingback from free-web-design.co.cc Articles You Should Read to Spice Up Your Web Design | Web Design Blog 2009
  56. Pingback from inseven.ca 36 Eye-Catching Jquery Navigation Menus | Inseven Designs
  57. Pingback from blog.themeforest.net In the Woods - Multilevel Menus with jQuery and CSS
  58. Pingback from freedesignmagazine.com Vimeo Css Menu | Free Design Magazine, The Best Free Vectors on the Net!
  59. Pingback from shejikuang.com 35个夺人眼球的jquery菜单下载 | 设计狂
  60. Pingback from tableless.com.br Digest 06/09: Javascript, JQuery | Boas práticas de Desenvolvimento com Padrões Web
  61. Trackback from You are now listed on FAQPAL Create Vimeo-like top navigation
  62. Pingback from themeflash.com Multi-level Drop Down Menus | Themeflash
  63. Pingback from jsssc.cn 35个夺人眼球的jquery菜单下 | 路可-WEB前端开发
  64. Pingback from 010wu.cn 零食屋 » Blog Archive » Vimeo风格的顶部导航菜单
  65. Pingback from sixrevisions.com 30 Exceptional CSS Navigation Techniques
  66. Pingback from glurt.com CSS horizontal drop down menu tutorials | glurt
  67. Pingback from rubendomfer.com Técnicas para crear menús en CSS | rubendomfer
  68. Pingback from answerspluto.com list of urls 4 « Answers Pluto
  69. Pingback from blog.tuvinh.com 30 Exceptional CSS Navigation Techniques | TuVinhSoft .,JSC
  70. Pingback from smashingmagazine.com 50 New CSS Techniques For Your Next Web Design | CSS | Smashing Magazine
  71. Pingback from blog.24reader.com 50 New CSS Techniques For Your Next Web Design 於囧
  72. Pingback from wpconfig.com Wordpress Blog Services - 50 New CSS Techniques For Your Next Web Design
  73. Pingback from how2pc.co.il How2Pc » Blog Archive » 50 New CSS Techniques For Your Next Web Design
  74. Pingback from album.amb.com.tw AMB Album » 50 New CSS Techniques For Your Next Web Design
  75. Pingback from desinine.com 50 New CSS Techniques For Your Next Web Design | Desinine
  76. Pingback from extratuts.com Create Vimeo-like top navigation with css and xhtml | ExtraTuts
  77. Pingback from tripwiremagazine.com 30+ Essential Javascript Framework Supported Navigation Techniques | tripwire magazine
  78. Pingback from guidesigner.net Collection of Essential Javascript Framework Supported Navigation Techniques | guidesigner.net
  79. Pingback from smashmygirlfriend.com Drop-Down Menu: 30+ Useful Scripts to Enhance Header Navigation « test
  80. Trackback from 灵动生活 15个jQuery导航制作教程
  81. Pingback from alex.devilart.ru Навигация с помощью JQuery (Часть II) | AleX's Blog
  82. Pingback from amenext.com Drop-Down Menu: 30+ Useful Scripts to Enhance Header Navigation | Download E-Books Free Video Training Courses Softwares
  83. Pingback from ajaxdump.com Create Vimeo-like top navigation – CSS | Ajax Dump
  84. Pingback from vietphotoshop.wordpress.com 50 New CSS Techniques For Your Next Web Design « Photoshop.vn – Your Design Resource
  85. Pingback from topsy.com Twitter Trackbacks for Create Vimeo-like top navigation [jankoatwarpspeed.com] on Topsy.com
  86. Pingback from vietphotoshop.wordpress.com 50 New CSS Techniques For Your Next Web Design « Photoshop.vn – Your Design Resource
  87. Pingback from menblog.net Drop-Down Menu: 30+ Useful Scripts to Enhance Header Navigation | MEN blog . net
  88. Pingback from onlinemarketerz.com Drop-Down Menu: 30+ Useful Scripts to Enhance Header Navigation | Internet Marketing Tips and Strategy To Make Money Online
  89. Pingback from yuxu.cafemix.jp jQueryとCSSによる多階層ドロップダウンメユーの処理法38 | yuxu's notebook
  90. Pingback from huibit05.com 38 jQuery And CSS Drop Down Multi Level Menu Solutions | huibit05.com
  91. Pingback from vietphotoshop.wordpress.com Drop-Down Menu: 30+ Useful Scripts To Enhance Header Navigation « Photoshop.vn – Your Design Resource
  92. Pingback from netbilgi.co.cc NetBilgi | İnternetteki En İyi Bilgi Kaynağı » Blog Archive » farklı tarzlarda jquery ve css menüler
  93. Pingback from lunchtimelaugh.com Drop-Down Menu: 30+ Useful Scripts to Enhance Header Navigation | Lunch Time Laugh
  94. Pingback from teratips.com The 10 jQuery and CSS Drop Down Multi Level Menu Solutions | Blogging Tips by TeraTips.com
  95. Pingback from blook.org.cn 36个JQuery导航菜单演示+下载 | 建站代码 | 菠萝筐
  96. Pingback from kixi.com.cn 清晰博客 » 36个引人注目JQuery导航菜单
  97. Pingback from derlemeler.com Bilgi PaylaÅŸtıkça ÇoÄŸalır » Jquery ve css menüler
  98. Pingback from 518studio.cn 36个引人注目的导航菜单(上) - 518工作室
  99. Pingback from oorch.com 30+ Drop Down Menu Scrips | oOrch Blog
  100. Pingback from blog.almacenplantillasweb.es Colección de menús multinivel desarrollados con jQuery y Mootools | Recursos para desarrollo y diseño web - AlmacenPlantillasWeb Blog
  101. Pingback from chatgul.com farklı tarzlarda jquery ve css menüler | Chatgul.Com / Klavyeden Dostluga acilan kapi
  102. Pingback from neurosoftware.ro 38 jQuery And CSS Drop Down Multi Level Menu Solutions - Programming Blog
  103. Pingback from 9tricks.com Drop-Down Menu: 30+ Useful Scripts to Enhance Header Navigation | 9Tricks.Com - Tips - Tricks - Tutorials
  104. Pingback from designdazzling.com 75 Amazing CSS Navigations and Jquery Examples | Design Dazzling
  105. Pingback from blog.pixelfont.com.br Os 25+… Menus e Plugins em jQuery! | PixelFont
  106. Pingback from renanlima.com 25 Menus e Plugins para Jquery | Renan Lima
  107. Pingback from sharebrain.info How to create Vimeo-style top navigation | Sharebrain »
  108. Pingback from byweb.info 50 Cool CSS Menus, Free Source Codes + Tutorials
  109. Pingback from arbent.net 40 Outstanding CSS Techniques And Tutorials | Arbenting
  110. Pingback from skyje.com Jquery and Web Design Tutorials
  111. Pingback from blog.phpxx.net 创创工场 » 15个jQuery导航制作教程
  112. Pingback from theme-center.com 50 Cool CSS Menus, Free Source Codes + Tutorials | Theme Center
  113. Pingback from hongkiat.com Drop-Down Menu: 30+ Useful Scripts to Enhance Header Navigation | Graphics
  114. Pingback from tympanus.net 42 jQuery Navigation based Techniques | Codrops
  115. Pingback from faydaliweb.com Jquery superb navigasyon menüleri | FaydalıWeb | Internetin Faydalı Yüzü
  116. Pingback from gizlikale.com Yepyeni jquery navigasyon menü | Blog GizliKale Güncel Linkler
  117. Pingback from webdesignfan.com 26 jQuery Plugins for Superb Navigation | WebDesignFan.com
  118. Pingback from editandolaweb.com Crear un Menu de navegación al estilo de Vimeo | Editando La Web
  119. Pingback from dev-sy.com 38 jQuery And CSS Drop Down Multi Level Menu Solutions
  120. Pingback from sosyopat.net 10 Harika jQuery Navigasyon Menü - sosyopat blog
  121. Pingback from jonathan-menet.fr [Tuto] R?àaliser un menu style Vimeo, CSS/html | Le Blog John's Graphisme, freelance sur Paris
  122. Pingback from ajaxfreak.com Vimeo-Like Top Navigation « Ajax Freak
  123. Pingback from speckyboy.com 24 CSS (in some cases with jQuery) Navigation and Menu Tutorials : Speckyboy Design Magazine
  124. Pingback from techie-buzz.com jQuery Navigation Menus | jQuery Scripts
  125. Pingback from phpman.com.cn PHPMan–Live and learn » 38个精美css å’Œ jQuery 多级下拉菜单实例
  126. Pingback from simple-development.com Excelentes técnicas navegación jQuery | Simple Development
  127. Pingback from jquerylabs.com Vimeo-like top navigation
  128. Pingback from bbon.cn 14个出色的导航菜单实例教程 - 菠菜博
  129. Pingback from ledesigne.com 30 Best CSS Techniques for a Unique Navigation « LeDesigne Studio
  130. Pingback from ajax-plugins.com Create Vimeo-like top navigation | Ajax Plugins
  131. Pingback from narga.net 25 sexy jQuery Drop Down Multi Level Menu — Narga
  132. Pingback from codigoalternativo.info CodigoAlternativo.info » Blog Archive » Crear un menú de navegación al estilo vimeo.com
  133. Pingback from presidiacreative.com 15 amazing jquery navigation tutorials | Presidia Creative
  134. Pingback from eagrapho.com eagrapho » 35 Awesome jQuery Navigation Enhancing Plugin Tutorials
  135. Pingback from sowmo.com 15 Amazing jQuery Navigation Tutorials | qface & sowmo sky
  136. Pingback from dfey.com 14个出色的jQuery导航菜单实例教程 « Dfey Creative Minds
  137. Pingback from huedesigner.wordpress.com 10 Top-Notch CSS Editors « HUE Designer
  138. Pingback from noupe.com 45 jQuery Navigation Plugins and Tutorials - Noupe
  139. Pingback from blog.idesignmalta.com 45 jQuery Navigation Plugins and Tutorials | iDESIGN
  140. Pingback from afiffattouh.com 45 jQuery Navigation Plugins and Tutorials | Afif Fattouh - Web Specialist
  141. Pingback from julianpopov.net 45 jQuery Navigation Plugins and Tutorials | Google Reader | Юлиян Попов
  142. Pingback from neilskoglund.com 45 jQuery Navigation Plugins and Tutorials
  143. Pingback from onlinemarketingconnect.com Online Marketing Connect — Blog — 45 jQuery Navigation Plugins and Tutorials
  144. Pingback from sumerasblog.wordpress.com 50 New CSS Techniques For Your Next Web Design « SUMERA’S Weblog
  145. Pingback from imvsmi.ro 45 jQuery Navigation Plugins and Tutorials » IMvsMI blog
  146. Pingback from emptycup.cn 30个酷炫的CSS导航菜单 - 空杯网(EmptyCup.cn)- 前端设计资源分享!
  147. Pingback from interactiveme.com 45 jQuery Navigation Plugins and Tutorials - Interactive Middle East
  148. Pingback from vectordump.com 30 Best CSS Techniques for a Unique Navigation | Vectordump
  149. Pingback from designzzz.com Top 15 Jquery CSS Animated Navigation Tutorials – Designzzz
  150. Pingback from swapnil.rubyphp.com Multi-level Drop Down Menus : swapnil
  151. Pingback from web7d.com.cn 45个jQuery的导航插件和教程 | Web启点

Add comment

   
        Country flag
biuquote
Loading