Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using a little embedded code copied from www.youtube.com, to play a flash movie on my blog, however, I can't get the movie and content to align to the middle.

Diary.aspx
<pre lang="xml"><%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Diary.aspx.cs" Inherits="Diary" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">
    This page is still under construction. <br/>
    <p> <object align="middle" width="480" height="385">
        <param name="movie" value="http://www.youtube.com/v/rNBWf54RvsI?fs=1&amp;hl=en_GB"></param>
        <param name="allowFullScreen" value="true"> </param>
        <param name="allowscriptaccess" value="always"></param>
        <embed src="http://www.youtube.com/v/rNBWf54RvsI?fs=1&amp;hl=en_GB" type="application/x-shockwave-flash"
        type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
        width="480" height="385"></embed>
    </object> </p>
</asp:Content>




Source code here.
Posted
Updated 17-Aug-10 11:19am
v2

This is not an ASP.NET question, it's a basic HTML question. I believe you need to create an object that is the full width of the screen for this tag to align itself with. With CSS, it's always a case of try until you find it, none of it actually makes sense.,
 
Share this answer
 
Comments
jon-80 18-Aug-10 1:43am    
excuse me
Well it just happens that other text within the pages are aligned to the right and I can't figure out why either.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900