How to change the position of the text with the tag?

html <div class="footer"> <i>by Misha Nikolov</i> <i>(C) Tunika7 2018</i> </div> 

This does not work:

 .footer i{ color: white; text-align: right; } 
  • You are trying to make an alignment in the i tag, which cannot be done without display and width . - And

3 answers 3

 .footer i:first-child { float:left; } .footer i:last-child { float:right; } 
 <div class="footer"> <i>by Misha Nikolov</i> <i>(C) Tunika7 2018</i> </div> 

     .footer { text-align: right } 
     <div class="footer"> <i>by Misha Nikolov</i> <i>(C) Tunika7 2018</i> </div> 

      It seems to me or this question is duplicated?

       <div class="footer"> <div id="one">by Misha Nikolov</div> <div id="two">(C) Tunika7 2018</div> </div> #one { float: left; } #two { float: right; }