user3291513 user3291513 - 3 months ago 8
PHP Question

How to do bold and simple text in echo in php

I want to echo this type
Group: Monocot

But my output is show this
Group : Monocot

How to do this ?
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 to align central this button ? My code is :

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


Please help me. Thanks

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>';
Comments