Skip to content
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

Open
fguillen opened this issue Oct 4, 2013 · 3 comments
Open

Not working for me #9

fguillen opened this issue Oct 4, 2013 · 3 comments

Comments

@fguillen
Copy link

fguillen commented Oct 4, 2013

Check the JSFiddle :/

@krisnoble
Copy link
Owner

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 :)

@fguillen
Copy link
Author

fguillen commented Oct 5, 2013

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:

@krisnoble
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants