I am having this piece of code in which a style element is added. How can I add a second style element in the same echo? per example: color: orange;
echo '<span class=\'Meta\' style=\'min-height:inherit\'>'.T('Read by: ').$out.'</span><br>';
I am having this piece of code in which a style element is added. How can I add a second style element in the same echo? per example: color: orange;
echo '<span class=\'Meta\' style=\'min-height:inherit\'>'.T('Read by: ').$out.'</span><br>';
Just add the rule separated by a semi-colon, in the same style
attribute:
echo '<span class=\'Meta\' style=\'min-height:inherit; color:orange;\'>'.T('Read by: ').$out.'</span><br>';
I prefer using single and double quotes in combination, simpler to read and no need to escape quotes:
echo '<span class="Meta" style="min-height:inherit; color:orange;">'.T('Read by: ').$out.'</span><br>';