ganlanyuan / tiny-slider

Vanilla javascript slider for all purposes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autowidth inside <table width="70%">

rubadger opened this issue · comments

I have pretty old table layout website.

My slider must be installed in to the table with relative width, for example:

<table width="70%" border="1"><tr><td>
     <div class="slider-container">....my tiny-slider....</div>
</td></tr></table>

But in this case tiny-slider don't react to the width of the table or window size change, but breaks it, pushes it apart.

If insert tiny-slider in <div style="width:70%;"></div> it's ok, but i need table in this case.
Option "viewportMax" and "autowidth" don't help.

Is there a solution to this problem?
prew