0

On my website http://goo.gl/KwP9I section "PRESSE ET MEDIAS" I'd like the youtube video to be centered horizontally and next to it (with a few px space) I'd like to see a text box.

I tried various things found via google but nothing is working.

Any idea how to fix this?

4

1 回答 1

1

将此添加到您的.youtube-player课程中:

.youtube-player
{
display:block;
margin-left:auto;
margin-right:auto;
}

编辑:

要获得视频旁边的标题,您必须float:left使用视频和float:right包装您的 div<p>hello</p>

然后保持白色背景,在你的 div 之后,hello你需要添加另一个带有样式的空 divclear:both

于 2012-07-20T14:16:39.533 回答