Skip to content
Advertisement

How to do bold and simple text in the same line using the echo in php

I want the output from the echo function like this type: Group: Monocot

But my output is showing like this: Group: Monocot

My code is given bellow:

echo '<div style="margin-top: 10px; margin-bottom: 10px; font-size: 20px; color: #000; font-weight: bold; margin-left: 150px;"> Bengali Name : '.$row['banglaname'].'</div>';

How do align central a button in PHP?

My code is given below:

<button onClick="window.print()">Print this page</button>

Advertisement

Answer

Try this:

echo '<div><span style="margin-top: 10px; margin-bottom: 10px; font-size: 20px; color: #000; font-weight: bold; margin-left: 150px;">Bengali Name :</span> '.$row['banglaname'].'</div>';
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement