homepage Welcome to WebmasterWorld Guest from 54.234.0.85
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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
piripi




msg:4241973
 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




msg:4242311
 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