[Xerte] CSS Question
Tenney Julian
Julian.Tenney at nottingham.ac.uk
Fri May 9 10:08:56 BST 2008
yes. You are loading it wiht FileLocation + 'myCSS.css', right? I just
tested it here and it works, must be a typo or something,
________________________________
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul
Beckwith, AC&S Ltd
Sent: 09 May 2008 10:03
To: 'Xerte discussion list'
Subject: RE: [Xerte] CSS Question
Thanks Julian, I'll give it a go.
I can't seem to get it working in just Xerte....
I have pointed to the css file using the styleSheet property in the LO
My css file works fine elsewhere and looks like this:
@charset "utf-8";
/* CSS Document */
title
{
font-family: arial;
size: 30px;
}
subtitle
{
font-family: Verdana, Arial, Helvetica, sans-serif;
size: 12px;
font-size: 36px;
}
And when I am actually applying the styles, I am putting:
<title> hello </title> or <subtitle> hello again </subtitle>
Is this right?
________________________________
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tenney Julian
Sent: 09 May 2008 09:13
To: Xerte discussion list
Subject: RE: [Xerte] CSS Question
good question.
_level0.engine.css should contain the stylesheet, so you ought to be
able to apply that to text fields in loaded swfs.
That makes the swf rely on Xerte for it's stylesheet. It might be better
to initialise the swf with a path to the stylesheet, and get the swf to
load the css itself - that way you can use the swf elsewhere more
easily. Depends how fussy you are about potentially reusing the swf and
the whole object oriented thing - I like to make swfs pretty much self
contained, and initialise them by passing any data they need to an init
function. It's a bit more work, but it keeps you out of trouble later.
________________________________
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul
Beckwith, AC&S Ltd
Sent: 08 May 2008 13:59
To: 'Xerte discussion list'
Subject: [Xerte] CSS Question
I have a stylesheet in Xerte, can the styles in this sheet be used
inside a swf that is elsewhere in my Xerte project?
Aerospace Consulting & Services Ltd
Engineering, Training, Consultancy <http://www.acns-gmbh.com/>
Paul Beckwith
Multimedia Developer
AC&S LTD
35A Victoria Road East
Thornton-Cleveleys
Lancashire
FY5 5BU
UK
paul.beckwith at acns-group.com <mailto:mark.tomlinson at acns-group.com>
www.acns-group.com <http://www.acns-group.com/>
tel:
fax: :
+44 1253 855 997
<http://www.plaxo.com/click_to_call?lang=en&src=jj_signature&To=%2B44+12
53+855+997&Email=mark.tomlinson at acns-group.com>
+44 870 762 6818
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20080509/f2afdbfc/attachment.html
More information about the Xerte
mailing list