I can't seem to find any information in the documentation to guide me in the right direction here. I'm hesitant to use columns
as it could result in gaps between the text.
Currently, I have the date displayed at the top of my website like this using
echo date('l') . "<br>" . date('F d, Y');
. However, it appears centered with a line break:
Friday
November 03, 2017
For smaller screens, such as phones, I would like the date to appear as Friday November 03, 2017
without the line break.
I am aware of a simple solution that involves setting up columns to achieve this, but it results in gaps between the words due to the even distribution of column sizes:
<div class="row">
<div class="col-sm-6 col-md-12">
<?php echo date('l'); ?>
</div>
<div class="col-sm-6 col-md-12">
<?php echo date('F d, Y'); ?>
</div>
Are there alternative methods to accomplish this?
By "gap," I mean
Friday [gap here due to column space] November 03, 2017
.