Ezhno Ezhno - 1 year ago 102
Javascript Question

Text-align: right; keep a margin no matter what I try

I've got this simple code that displays the Day of the week, the time and the date. The text should be aligned on right, as specified in the css, but I don't know why it doesn't fix itself on the right side of the screen (excluding the margin) it always keep a big space between the side of the window and itself.


<div class="droite" id="time" >

text-align: right;

width: 73%;

Answer Source

Remove display: table; in #aszone and add float: left and float: right to .gauche and .droite respectively.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download