I am currently developing a project utilizing Bootstrap as the front end framework. Within this project, I have implemented a vertical scrollable card containing various items. Each row within the card consists of the following code:
<p>
<span>
<span style="display: inline-block; width: 100px;">
<strong><?php echo $clientSiteDemandRow['dayOfWeek']; ?></strong>
</span><span style="display: inline-block; width: 70px;">
<i class="fa fa-clock"></i> <?php echo $clientSiteDemandRow['shiftStart']; ?>
</span>
<span style="display: inline-block; width: 100px;">
<?php echo $hours; ?> Hours
</span>
<span style="display: inline-block; width: 30px;" style="white-space: nowrap;">
<form action="" method="POST">
<button type="submit" class="btn btn-danger btn-sm" id="deleteSiteDemand" name="deleteSiteDemand" value="<?php echo $clientSiteDemandRow['id']; ?>">Delete</button>
</form>
</span>
</span>
</p>
https://i.sstatic.net/XN1z9.jpg
The first row displays correctly, however, on subsequent rows, the 'Delete' button wraps to the next line even though there is enough space for it to remain on the same line.
How can I ensure that the button stays on the same row? My searches thus far have provided solutions related to inline forms but not specific to my issue.
I have attempted using display: inline; and display: inline-block; on the outermost span without success.