PDA

View Full Version : embed videos with css?



binkiebink
02-04-2008, 12:59 AM
how do i embed videos with css? or can anyone do a html - css conversion for

<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/ooJq2c-PCiM&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/ooJq2c-PCiM&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
cause i need to learn css

i have presented this question before and gotten no helpful replies
one told me to put
not everything has forum scripts thanks

Djarid
02-04-2008, 04:41 AM
Ok, first off CSS (Cascading Style Sheets) is a method of specifying the desired layout for the content of a web page. The content itself should be in HTML or XHTML.

A video is definitely content and so needs to be specified in (x)html and so the <object /> tag is what needs to be used. CSS can be used to specify how you want that element to be displayed... eg you can specify its position, whether it should be inline or block etc but you can't use CSS to say what object should be embedded.