-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working for me #9
Comments
Hi Fernando There's a couple of problems in your JSFiddle code - firstly you need to include the Portamento-relevant styles as described in step 3 of the Usage section of http://simianstudios.com/portamento/ Also your code is causing a horizontal scrollbar which will stop Portamento from working (this is to avoid undesirable behaviour when the page is wider than the viewport) so you'll need to tweak your CSS to stop that happening. Fix those two issues and you should see it working :) |
Hi @krisnoble, I've added the portamento styles and I have removed the bootstrap.css which I think was the cause of the horizontal scroll bar.. but still the div is not fixed-floating: |
Hi Fernando You need to adapt the example CSS from the site to fit your HTML, specifically the ID of the floating element. Change #example to #floating in the Portamento styles and you should see it start floating. In your example the floating behaviour causes the div to lose its width (because of the positioning change), but you can fix that by setting a width explicitly in the CSS. In a real-world example you would probably already have a width set anyway so this shouldn't be a problem. |
Check the JSFiddle :/
The text was updated successfully, but these errors were encountered: