我在下面有一个屏幕截图,其中显示了考试信息、计时器和一些问题:
现在的问题是我希望问题详细信息显示在考试详细信息下方,而不是旁边。我的问题是如何让问题显示在下面?我也想要彼此下方的问题
HTML/PHP:
//EXAM DETAILS
<div class='lt-container'>
<p><input type='hidden' id='studentId' name='studentId' value='<?php echo $dbStudentId; ?>' /></p>
<p><strong>Student:</strong><?php echo $dbStudentAlias . " - " . $dbStudentForename . " " . $dbStudentSurname; ?> <br/>
<strong>Module:</strong><?php echo $dbModuleNo . " - " . $dbModuleName; ?>
<input type='hidden' id='moduleId' name='moduleId' value='<?php echo $dbModuleId; ?>' /><br/>
<strong>Assessment:</strong><?php echo $dbSessionName . " - " . date('d-m-Y',strtotime($dbSessionDate)) . " - " . date('H:i',strtotime($dbSessionTime)); ?>
<input type='hidden' id='sessionId' name='sessionId' value='<?php echo $dbSessionId; ?>' /><br/>
<strong>Assessment Weight: </strong><?php echo $dbSessionWeight; ?> <br/>
<strong>Total Marks: </strong><?php echo $dbTotalMarks; ?> <br/>
<strong>Penalty: </strong><?php echo $penaltymsg; ?> </p>
</div>
//TIMER
<div id='rt-container'>
<h1><span id='countdown'><?php echo $dbSessionDuration; ?></span></h1>
</div>
<?php
}
//QUESTION DETAILS
foreach ($arrQuestionId as $key=>$question) {
?>
<div class='lt-container'>
<p><strong>QUESTION <span id="quesnum"></span>:</strong></p>
<p><?php echo htmlspecialchars($arrQuestionNo[$key]) . ": " . htmlspecialchars($arrQuestionContent[$key]); ?></p>
</div>
CSS:
.lt-container{
float: left;
}
#rt-container {
clear: right;
float:right;
}