jQuery.Marquee
jQuery.Marquee copied to clipboard
width 100% inside a table
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
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.
Hello Andreas,
Your Sample looks good to me, your div take 100% of the available space and not beyond !!
(I use Firefox 47.01)
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)
You right !! 2 Bugs who will soon correct I hope :*)
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?
the AndreasSchantl's bug maybe but the width 100% inside a TD issue do not have anything to see with the text length.
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...)
Just tried adding max-width to td and seems to be working? https://jsfiddle.net/pazp2mb9/6/
@AndreasSchantl you can duplicated your content yourself and on the top use duplicated option which will make it 4 times :P
@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%;
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 👎
@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