html - is there a way to center align this span element without affecting how the element renders? -
i'm rendering rating stars using this , need center elements of html page, including stars. page this:
problem is, when use <center> or <style="text-align: center;"> stars end looking this:
code:
<center> <span class="stars">4</span> </center> result:
is there way center span class without affecting how renders? tried using margin-left/right pretty bad when change size of browser/use on phone.
what is:
what want:
use margin: 0 auto;. center parent div..
if want understand more margin: 0 auto; try link.




Comments
Post a Comment