homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

How to center logo and menu items on flash/xml page
Help on how to center content on xml page used in flash

Msg#: 4241971 posted 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"?>



menuRows= "0"


footerText="mypage| copyright 2011 | myname"


<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" />


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

Thank you.
Mr. pig



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

Msg#: 4241971 posted 3:31 pm on Dec 14, 2010 (gmt 0)

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>

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved