0

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?

1
  • Note the parentheses are meaningless here: <?= $event['Value'] ?> works too Commented Mar 28, 2013 at 20:38

2 Answers 2

1

Use a span (along with the relevant CSS):

<span class="field-name"><?= $event['Field'] ?></span>:
<?= $event['Value'] ?> 

divs have an implicit display: block, which prevents them flowing with text.

Sign up to request clarification or add additional context in comments.

Comments

0

Or either define classes for these divs, so make them in CSS To float on the same row

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.