Making a column's position static in a table
I hae an asp.net mvc4 application in which i had this view:
<table><tr><td style="width:200px;display:block;margin-top:80px;" id="tree">
<ul id="red" style="width: 100%;
display:block;width:100%;margin-top:0%">
@for (int i = 0; i < 10; i++)
{
<li><span class="projet">Projet : </span>
<br />
<br />
<ul>
@for (int j = 0; j < 10; j++)
{
<li><span class="affaire"> Affaire_description</span>
<br />
<br />
<ul>
@for (int k = 0; k < 10; k++)
{
<li><span class="sequence">Sequence_description </span>
<ul>
@for (int t = 0; t <
@Model.Get_List_Tache_By_Sequence(id_sequence).Count;
t++)
{
<li><span class="tache">Tache :
@Html.ActionLink((string)@Model.Get_List_Tache_By_Sequence(id_sequence)[t].Tache_description,
"GererTache", new { id = id_tache })</span></li>
}
<br />
<li>@Html.ActionLink("AjouterTâche",
"AjouterTacheDansSequence", new { id = id_sequence
}) </li>
<li>@Html.ActionLink("GérerSéquence",
"GérerSéquence", new { id = id_sequence }) </li>
</ul>
</li>
}
@for (int g = 0; g < 10; g++)
{
int id_task =
@Model.Get_List_Tache_By_Affaire(id_affaire)[g].Id_tache;
<li><span class="tache">Tache: </span>
</li>
}
<br />
</ul>
<ul><li>@Html.ActionLink("AjouterSéquence",
"AjouterSequence", new { id = id_affaire }) </li>
<li>@Html.ActionLink("Ajoutertâche", "AjouterTache",
new { id = id_affaire }) </li>
<li>@Html.ActionLink("Gérer cette affaire",
"GererAffaire", new { id = id_affaire }) </li>
</ul>
</li>
}
<br />
</ul>
<ul><li>@Html.ActionLink("Gérer les affaires",
"GererAffairesProject", new { id_project =
@Model.Get_List_Projet()[@i].Id_projet }) </li></ul>
</li>
}
<br />
</ul>
<span>@Html.ActionLink("Gérer les dépendances des tâches",
"GererIndependance2")</span>
</td>
<td >
<div id='calendar' ></div>
</td>
</tr>
</table>
the views is like this:
the table contains a treeview and a calendar. My problem is how to fix the
position of the calendar because when i click into the treeview and a new
subtitles are displayed: the calendar changes also its position relatively
to the treeview.
So can i make the position of this colm static ?
No comments:
Post a Comment