[Xerte] Centring the learning object

Paul Swanson Paul.Swanson at harlandfs.com
Thu Apr 22 16:05:46 BST 2010


<center> may or may not work, depending on whether you use a strict Document Type Definition. It's deprecated, but most browsers will be backward compatible unless you use a strict DTD. The new way, is to use CSS. Find your HTML file, and modify it like so (changes marked in red):

 

<div style="min-height:100%; width:100%; height:100%; margin-left:auto; margin-right:auto; text-align:center;">

<script type="text/javascript" language="JavaScript">

myRLO = new rloObject('800','605','customer_service_module.rlo');

 

function closeWindow () {

    // closes this window

    self.close ();

}

 

</script>

</div>

 

You might not need the text-align bit.

 

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter Snowball
Sent: Thursday, April 22, 2010 4:09 AM
To: Xerte discussion list
Subject: Re: [Xerte] Centring the learning object

 

I add <center> to the head tag of all my Xerte publised rlo.  The HTML purists may have a more elegant and up to date solution but it seems to work.
See attached image of change to  publish HTML files in Xerte program.

Peter


On 22/04/2010 8:19 PM, Julian Tenney wrote: 

You need to playa round with javascript that loads up the lfash player - yes it is possible,

 

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of A-P. Lian
Sent: Thursday, April 22, 2010 11:18 AM
To: Xerte discussion list
Subject: [Xerte] Centring the learning object

 

Hi,

Is there any way that the learning object can be displayed in the centre of the browser rather than in the top left-hand corner? I know about displaymode but that does not do what I am trying to achieve (which is to display the object in the centre of the browser no matter what its size is).

Andrew
PS I promise to stop asking novice questions soon but I need to assess xerte very fast for a specific project we have in mind. Once that is done more in-depth reading and practice will solve the problems we encounter....


-- 
Professor Dr Andrew Lian
Vice-President of AsiaCALL
Chair, Dept. of Foreign Languages
Western Illinois University
Macomb, IL, 61455, USA
e-mail: AP-Lian at wiu.edu; website: http://www.andrewlian.com
Phone: +1 (309) 298-1558; Fax: +1 (309) 298-1060

We don't see things as they are, we see things as we are. (Anaïs Nin)
The universe is made up of stories, not atoms (Muriel Rukeyser)

When you change the way you look at things, the things you look at change (Max Planck)

 
 
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
  






-- 
c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100422/0c6d5883/attachment.html


More information about the Xerte mailing list