Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

twizz

Members
  • Joined

  • Last visited

  1. that´s it! I just have to understand how it works. Thank you!
  2. Well, thanks you very much, that´s more or less what I was looking for, but I am having some issues when trying to change that code to addecuate to my needs. Here´s the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>CSSnewbie Example: Horizontal CSS Dropdown Menus</title> <style> /* These styles just pretty up the page a bit. */ body { font: 62.5%/1.2 Arial, Helvetica, sans-serif; background-color: #eee; } #wrap { position: relative; font-size: 1.2em; width: 700px; padding: 50px 20px; margin: 0 auto; background-color: #fff; position: relative; } /* These styles create the dropdown menus. */ #navbar { position: absolute; top: 0; right: 0; margin: 0; padding: 0;} #navbar li { list-style: none; float: left; } #navbar li a { display: block; padding: 3px 8px; text-transform: uppercase; text-decoration: none; color: #999; font-weight: bold; } #navbar li a:hover { color: #000; } #navbar li ul { display: none; } #navbar li:hover ul, #navbar li.hover ul { position: absolute; display: inline; top: 0; /*right: 100%;*/ left: -200%; width: 100%; margin: 0; padding: 0; } #navbar li:hover li, #navbar li.hover li { float: left; } #navbar li:hover li a, #navbar li.hover li a { color: #000; } #navbar li li a:hover { color: #357; } </style> <script> // Javascript originally by Patrick Griffiths and Dan Webb. // http://htmldog.com/articles/suckerfish/dropdowns/ sfHover = function() { var sfEls = document.getElementById("navbar").getElementsByTagName("li"); for (var i=0; i<sfEls.length; i++) { sfEls[i].onmouseover=function() { this.className+=" hover"; } sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" hover\\b"), ""); } } } if (window.attachEvent) window.attachEvent("onload", sfHover); </script> </head> <body> <div id="wrap"> <ul id="navbar"> <li><a href="#">Languages</a> <ul> <li><a href="#">English</a></li> <li><a href="#">Español</a></loi> <li><a href="#">Italiano</a></li> <li><a href="#">Francaise</a></li> <li><a href="#">Deutsch</a></li> <li><a href="#">Russian</a></li> <li><a href="#">Arabic</a></li> <li><a href="#">Chino</a></li> </ul> </li> </ul> </div> </body> </html> So, my question is: why I get the submenu uin vertical position again?
  3. Is possible to do a dropdown menu, opening horizontal, and to the left? something like this:
  4. Hi, coming back to web design and development after almost 8 years, when we used to slice images and css was barely starting to popularize... So imagine my confusion about all new trends and techniques... Hope to find some light for my million doubts here!

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.