Reputation: 21
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?
Upvotes: 0
Views: 50
Reputation: 7034
Or either define classes for these divs, so make them in CSS To float on the same row
Upvotes: 0
Reputation: 97571
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.
Upvotes: 1