Jump to content
php.lv forumi

Youtobe video centrēšana ar CSS


Wuu

Recommended Posts

<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/dIopXUPVGFE&rel=0" width="425" height="344"><param name="movie" value="http://www.youtube.com/v/dIopXUPVGFE&rel=0" /><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><p><a href="http://www.youtube.com/watch?v=dIopXUPVGFE">[video (flash player not installed)]</a></object>

 

.viewtopic_message object {
		margin:auto auto;
}

 

Mēģināju visādi ,bet necentrē.

Link to comment
Share on other sites

Ja jau no foruma, tad kur ir problēma iekš cikla iekļaut to posta saturu <div> tagos? Ideja tā pati, kas Grey_Wolf`am #5 un atliek tikai iecentrēt. Un lai ar margin nocentrētu divu, tam vajag piešķirt kādu platumu.

Edited by kechums
Link to comment
Share on other sites

<div align="center">
 <object type="application/x-shockwave-flash" data="http://www.youtube.com/v/dIopXUPVGFE&rel=0" width="425" height="344">
   <param  name="movie" value="http://www.youtube.com/v/dIopXUPVGFE&rel=0" />
   <param name="wmode" value="transparent" />
   <param name="allowfullscreen" value="true" />
   <p><a href="http://www.youtube.com/watch?v=dIopXUPVGFE">[video (flash player not installed)]</a>
 </object>
</div>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...