Friday, 15 June 2012

html - Align an anchor to the right -



html - Align an anchor to the right -

consider next :

<a>a</a><a>b</a>

how can align sec anchor (b) right ?

ps : float abuse in situation, it's not made , causes problems, need other more reasonable solution.

you'd need separate containers.

<p> <span> <a>left</a> </span> <span class="align-right"> <a>right</a> </span> </p> p {font-size:0; /* fixes inline block spacing */ } span { width:50%; display:inline-block; } span.align-right { text-align:right; } span { font-size:16px; }

jsfiddle example.

html css

No comments:

Post a Comment