sebnitu / horizontalnav Goto Github PK
View Code? Open in Web Editor NEWA jQuery plugin that spans a horizontal navigation to fit the full width of it's container.
License: MIT License
A jQuery plugin that spans a horizontal navigation to fit the full width of it's container.
License: MIT License
I might be misunderstanding, but I believe this can be done with pure CSS.
ul.full-width {
display: table;
width: 100%;
}
ul.full-width > li {
display: table-cell;
}
This should work in IE8+, FF/Chrome/Safari. I'd expect it'd work in Opera too.
The JS options could be a good polyfill for older browsers though.
Am I misunderstanding something about this plugin?
I haven't tested with any other dropdown plugin, but with Superfish in FireFox for Mac, the dropdowns are aligned far left no matter what top menu you hover over, making the menu unusable as you can't hover down to the sub menu.
We at VersionEye are working hard to keep up the quality of the bower's registry.
We just finished our initial analysis of the quality of the Bower.io registry:
7530 - registered packages, 224 of them doesnt exists anymore;
We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).
Sadly, your library sebnitu/HorizontalNav
is one of them.
Can you spare 15 minutes to help us to make Bower better?
Just add a new file bower.json
and change attributes.
{
"name": "sebnitu/HorizontalNav",
"version": "1.0.0",
"main": "path/to/main.css",
"description": "please add it",
"license": "Eclipse",
"ignore": [
".jshintrc",
"**/*.txt"
],
"dependencies": {
"<dependency_name>": "<semantic_version>",
"<dependency_name>": "<Local_folder>",
"<dependency_name>": "<package>"
},
"devDependencies": {
"<test-framework-name>": "<version>"
}
}
Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.
NB! Please validate your bower.json with jsonlint before commiting your updates.
Thank you!
Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!
You may wanna make sure the demo works in chrome
This plugin doesn't work for me in my sites in IE 7/8, it returns an error of 'undefined console'
I have to comment out line 59 - 63 (instances of `console )
// if (o.tableDisplay) { // window.console.log('table display is false'); // } else { // window.console.log('table display is true'); // }
Hello!
Your plugin doesn't work in IE7-IE9 :/
Screenshot your example - http://www.keepme.ru/upload/images/2012/07/17/a567e38f119e2e49489c755b25fdc36e.PNG
Thank you for all of your work on HorizontalNav, it is a great menu script. I often use HorizontalNav in conjunction with another js script like TinyNav and I found that when the window is resized the div .clearHorizontalNav gets created with each resize.
See screenshot here: http://cl.ly/image/363Y2L15411i
This looks to be a result of the append('<div class="clearHorizontalNav">');
not running only if it doesn't already exist.
Hi there,
is there a way of preventing the "Navigation Item" in your demo to not wrap, but instead when the point of wrapping would occur to hide the menu totally and show a responsive menu button, which then reveals obviously a differently styled responsive menu?
Navigation items with drop down menus are being displayed inline instead of in a list style format like its supposed to.
For example
FF:
Menu Item
Sub Menu1 Sub Menu2 Sub Menu3
Webkit, IE, Opera:
Menu Item
Sub Menu1
Sub Menu2
Sub Menu3
Tested in FF 9, 12, and 15.
jQuery.browser has been removed from the latest version of jQuery (1.9) and is causing the plugin to fail without using https://github.com/jquery/jquery-migrate
long term I guess modernizr will have to be used, to check the browser.
This JS is awesome, but doesn't work well on smaller screens for some menu types, for instance under 400px wide.
It would be great if there was a MediaQuery option. Menutron has a good example:
https://github.com/micjamking/Menutron
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.