右对齐的Facebook像按钮

问题描述:

我能够把Facebook的喜欢按钮,在我的网站,但我怎么做它是右对齐在 DIV / IFRAME 这是?

I am able to put a Facebook like button on my website, but how do I make it to be right-aligned within the div/iframe it is in?

我尝试运用各种CSS属性,但我无法得到任何在iframe移动。

I tried applying various CSS properties, but I could not get anything to move in the iframe.

IFRAME 是一个内联元素,你可以使用

iframe is an inline element, you can use

text-align: right

对于包含iframe或浮动的iframe的权利,但只是一定要清除浮动之后,一个div

for a div that contains that iframe, or float the iframe to the right, but just make sure to clear the float afterwards.

示例: http://jsfiddle.net/Mujj6/3/
和: http://jsfiddle.net/Mujj6/5/

sample: http://jsfiddle.net/Mujj6/3/
and: http://jsfiddle.net/Mujj6/5/