I'm trying to build a planification calendar in HTML/CSS/JS using jQuery UI. In fact I need to have on the x axis the hours of the day (one TD = one hour, 20 px of larger) and on the y axis the different workshops. Into this I want to place, with drag and drop of jQuery, a div which represents an intervention. Of course an intervention can be of one, two, three or more hours longer.
So I want to place a div that is larger than his parent TD but without modifying his larger.
Any idea ?
PS: Sorry if my English is not as good as yours, I'm a french debutant programmer.
Here is my HTML page:
<table>
<tr>
<td class="snaponit"> </td>
...
<td class="snaponit"> </td>
<td class="snaponit">
<div id="draggable" class="draggable ui-widget-content" style="position: absolute; right: 0; left: 0;">
<p>Operation to be dragged on the grid.</p>
</div>
</td>
...
<td class="snaponit"> </td>
</tr>
<tr>
...
</tr>
<tr>
...
</tr>
<tr>
...
</tr>
</table>
A table with a certain number of rows containing 24 td. And a div placed on one of them, draggable, that is larger than his td.
Here is my css:
td {
height: 100px;
width: 20px;
background-color: lightgray;
border: solid gray 1px;
overflow-x: visible;
}
table {
position: relative;
margin: 25px 25px 25px 25px;
}
tr {
width: 480px;
}
I've tried to set the position of my attribute to "relative", "absolute" etc but none of these combinations worked. My Div is still forcing the td she's on to resize.
balise, but another problem comes, the content overflows the td under the next cell, and not over. How do I fix that ?
– Aurel Nov 12 '14 at 07:49