I want to create a dashboard for our upcoming deliveries.
Now I'm nearly done with just one problem. On the left side I want to show the name of the deliverer and in the middle there are some quick notes for the workers. It works but the middle text is aligned in order to the text length of the deliverer name.
My CSS:
.taskboardesc {
padding:5px 400px 2px;
left: 400px;
top: 22px;
/*margin-bottom:10px;*/
display:inline-block;
}
.taskboardheader {
display:inline-block;
/*display:-webkit-box;
display:-ms-flexbox;
display:flex;
-webkit-box-align:center;
-ms-flex-align:center;
align-items:center;*/
margin-bottom:20px;
padding:10px 5px 2px;
}
My PHP code:
<div class="taskboardheader">
<?= $this->url->link($this->text->e($task['title']), 'TaskViewController', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?>
<div class="taskboardesc">
<?= $this->text->markdown($task['description']) ?>
</div>
<div class='task-board-date1'>
<?php if (! empty($task['date_due'])): ?>
<span class="task-date
<?php if (time() > $task['date_due']): ?>
task-date-overdue
<?php elseif (date('Y-m-d') == date('Y-m-d', $task['date_due'])): ?>
task-date-today
<?php endif ?>
">
<i class="fa fa-calendar"></i>
<?= $this->dt->datetime($task['date_due']) ?>
</span>
<?php endif ?>
</div>
</div>
Here is a screenshot of the problem:

So how did I get the text fixed in the middle without being interrupted of the text length from the left text.