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

width 100% inside a table #80

Open
NexusFred opened this issue Sep 13, 2016 · 12 comments
Open

width 100% inside a table #80

NexusFred opened this issue Sep 13, 2016 · 12 comments

Comments

@NexusFred
Copy link

Hello,

I have a small width problem when the marquee div is inside a table td.

Sample https://jsfiddle.net/NexusFred/pazp2mb9/

How can I fix this ?

Thanks

Best regards

Nexus

@andjsch
Copy link

andjsch commented Sep 17, 2016

It doesn't only happen with tables. I have encountered the problem with a normal div as well.

Sample: https://jsfiddle.net/pazp2mb9/5/

It seems to me that this is some bug with the library itself, as we both use the standard css to run it.

@NexusFred
Copy link
Author

NexusFred commented Sep 18, 2016

Hello Andreas,

Your Sample looks good to me, your div take 100% of the available space and not beyond !!

(I use Firefox 47.01)

@andjsch
Copy link

andjsch commented Sep 18, 2016

Not totally true. The last text is just appearing and not moving out from the right to the left. You can see the correct behavior if you set the width to 500px. The wrong behaviour is starting at 600px.

You seem to have another problem as well, I thought at first that you mean the same as I do.

(Chrome 53, Firefox 48.0.2)

@NexusFred
Copy link
Author

You right !! 2 Bugs who will soon correct I hope :*)

@aamirafridi
Copy link
Owner

The problem is that your content is not long enough.
The purpose of marquee is to see long content. If your content is not long enough than you don't need to apply the plugin?

@NexusFred
Copy link
Author

the AndreasSchantl's bug maybe but the width 100% inside a TD issue do not have anything to see with the text length.

@andjsch
Copy link

andjsch commented Sep 28, 2016

For sure not. Your bug is real. Altough I wished there was an fix for mine...

Maybe a way to show short texts three times and not only just twice? Should solve the problem as far as I can see (but I hadn't had a look at the code yet...)

@aamirafridi
Copy link
Owner

Just tried adding max-width to td and seems to be working? https://jsfiddle.net/pazp2mb9/6/

@aamirafridi
Copy link
Owner

@AndreasSchantl you can duplicated your content yourself and on the top use duplicated option which will make it 4 times :P

@andjsch
Copy link

andjsch commented Sep 28, 2016

@aamirafridi Yeah, thats what it seems to end up like.

Interesting solution for @NexusFred as 300px make absolutely no sense with his problem. You should add this to some sort of FAQ. How should somebody know that the plugin can't interpret percentages.

I tried pretty much the same solution but mine had width: 100%;

@aamirafridi
Copy link
Owner

I never came across this issue before. It works with divs but for table its different due to some reasons.
Even if you provide width of 500px to table or td, it doesn't work. Its max-width on td that worked 👎

@NexusFred
Copy link
Author

NexusFred commented Sep 29, 2016

@aamirafridi that a solution to have something at 100% lol
For information the similar Russian version do not have this bug. So it's can be solved but with dimension issue, it's like find a bug in a Brainfuck code lol

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

3 participants