I ran into a problem when aligning two texts, one in the center and another text on the right.
I used the div to align:
<div style="text-align:center"> <h1> Sample Heading</h1> <div style="float:right; text-align:center"> <a href="#">sample link</a> </div> </div>
When I used this, my title is omitted on the left, it is not centered correctly, please let me know that this is the right way or is there any other way to handle this scenario.
thanks
source share