PC Review


Reply
Thread Tools Rate Thread

Center on Page

 
 
Richard
Guest
Posts: n/a
 
      11th Jan 2010
I've embedded this code on the page and I'd like to have it centered on the
page. Here is my code. Whats the code and where do I place it? Thanks in
advance!!!
<a href="http://www.restingtributes.com/media/v13.swf"
style="display:block;width:425px;height:300px;" id="player"> </a>
<script language="JavaScript"> flowplayer("player",
"media/flowplayer-3.1.5.swf"); </script>

 
Reply With Quote
 
 
 
 
Trevor Lawrence
Guest
Posts: n/a
 
      11th Jan 2010
"Richard" <(E-Mail Removed)> wrote in message
news:B8DD739A-4C96-4EDC-A705-(E-Mail Removed)...
> I've embedded this code on the page and I'd like to have it centered on
> the
> page. Here is my code. Whats the code and where do I place it? Thanks in
> advance!!!
> <a href="http://www.restingtributes.com/media/v13.swf"
> style="display:block;width:425px;height:300px;" id="player"> </a>
> <script language="JavaScript"> flowplayer("player",
> "media/flowplayer-3.1.5.swf"); </script>


Try

<div align="center">

<a style="text-align:center; width:425px; height:300px; border:1px solid
black;"
href="http://www.restingtributes.com/media/v13.swf"
id="player"> </a>
<script language="JavaScript">
flowplayer("player", "media/flowplayer-3.1.5.swf");</script>

</div>

I added the border so that you can see where it appears on the page. I
assume that the function flowplayer places some innerhtml into the <a> tag.
If so, you could make this an onload event
e.g.
<body onload='flowplayer("player", "media/flowplayer-3.1.5.swf")'>

<div align="center">
<a style="text-align:center; width:425px; height:300px; border:1px solid
black;"
href="http://www.restingtributes.com/media/v13.swf"
id="player"> </a>
</div>

--
Trevor Lawrence
Canberra
Web Site http://trevorl.mvps.org


 
Reply With Quote
 
Trevor Lawrence
Guest
Posts: n/a
 
      11th Jan 2010

"Trevor Lawrence" <Trevor L.@Canberra> wrote in message
news:uh8$a%(E-Mail Removed)...
> "Richard" <(E-Mail Removed)> wrote in message
> news:B8DD739A-4C96-4EDC-A705-(E-Mail Removed)...
>> I've embedded this code on the page and I'd like to have it centered on
>> the
>> page. Here is my code. Whats the code and where do I place it? Thanks in
>> advance!!!
>> <a href="http://www.restingtributes.com/media/v13.swf"
>> style="display:block;width:425px;height:300px;" id="player"> </a>
>> <script language="JavaScript"> flowplayer("player",
>> "media/flowplayer-3.1.5.swf"); </script>

>
> Try
>
> <div align="center">
>
> <a style="text-align:center; width:425px; height:300px; border:1px solid
> black;"

[snip]

P.S.
You may not want 'text-align:center' in the <a> tag. This centres the
content of the <a> not the <a> tag itself, which is done by 'align="center"'
--
Trevor Lawrence
Canberra
Web Site http://trevorl.mvps.org


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How do I center my whole web page Chris Leeds, MVP - FrontPage Microsoft Frontpage 26 8th Mar 2007 03:44 PM
center my page =?Utf-8?B?c3RldmU=?= Microsoft Frontpage 11 22nd Sep 2005 12:24 PM
center everything on my page =?Utf-8?B?c3RldmU=?= Microsoft Frontpage 3 22nd Sep 2005 04:40 AM
Center of Page =?Utf-8?B?Zm9yZ2l2ZW4zMjAw?= Microsoft Word Document Management 3 12th Nov 2004 03:27 PM
Center on page Dean Microsoft VB .NET 1 2nd Jul 2004 10:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:11 PM.