Welcome to WebmasterWorld Guest from 54.196.233.239

Forum Moderators: httpwebwitch

Message Too Old, No Replies

How to center logo and menu items on flash/xml page

Help on how to center content on xml page used in flash

     

piripi

9:47 pm on Dec 13, 2010 (gmt 0)



Hello guys out there.
I want you to know that I am a newbie and I have a problem with some XML code. I would like to center a logo and a menu in the page but I don't know how to do that. Could you please help out?

This is the code:

<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="template.xslt"?>

<home
logo="data/images/logo.png"
logo_x="100%"
logo_y="100%"

menu_items_x="100%"
menu_items_y="50%"


menuItemDistance="18"
menuRows= "0"
menuColumnsWidth="110"

bg_alpha="20"
pattern_alpha="50"

footer_color="0x000000"
footer_bg_alpha="0"
footer_text_color="0x666666"
footerText="mypage| copyright 2011 | myname"

swfPath="data/swf/"
introBg="data/images/bg/bg.jpg"
introfile="showcase.swf"
>


<item title="showcase" color="0xCCCCCC" colorOver="0x666666" typology="swf" file="showcase.swf" bg="data/images/bg/bg.jpg" />
<item title="about" color="0xCCCCCC" colorOver="0x666666" typology="swf" file="about.swf" bg="data/images/bg/bg_01.jpg" />
<item title="news" color="0xCCCCCC" colorOver="0x666666" typology="swf" file="news.swf" bg="data/images/bg/bg_02.jpg" />
<item title="contact" color="0xCCCCCC" colorOver="0x666666" typology="swf" file="contact.swf" bg="data/images/bg/bg_03.jpg" />
<item title="link" color="0xFF9900" colorOver="0x666666" typology="link" file="http://facebook.com" bg="data/images/bg/bg.jpg" />

</home>



In red is the content that I would like to see centered.
Any suggestion is welcome.

Thank you.
Mr. pig

httpwebwitch

3:31 pm on Dec 14, 2010 (gmt 0)

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome to WebmasterWorld!

please explain - what page are you trying to center this on? "xml page used in flash" is hard to interpret. are you centering the logo inside a flash movie, or are you viewing the XML in a browser?

In the template.xslt file, you are likely transforming the XML into XHTML. If that's so, try using <div style='text-align:center'>content</div>
 

Featured Threads

Hot Threads This Week

Hot Threads This Month