I have this php output
<?=($event ['Field'])?>:
<?=($event['Value'])?>
If i surround it with a div the line seams to break making these two outputs apear on separate lines on the doc.
How would I make the field bold without effecting the positioning of the value?
Use a span (along with the relevant CSS):
<span class="field-name"><?= $event['Field'] ?></span>:
<?= $event['Value'] ?>
div
s have an implicit display: block
, which prevents them flowing with text.
或者为这些div定义类,因此使它们在CSS中浮动在同一行上
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.