[Xerte] CSS Question
Paul Beckwith, AC&S Ltd
paul.beckwith at acns-group.com
Fri May 9 10:38:22 BST 2008
Yeah ive even tried it with a brand new Xerte file, it works fine in
dreamweaver but nothing in Xerte. Have checked for typos and even changed
all the file names and been into the xml file and its o in there too
Hhmmm...
_____
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 10:09
To: Xerte discussion list
Subject: RE: [Xerte] CSS Question
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
<http://www.acns-gmbh.com/> Engineering, Training, Consultancy
Paul Beckwith
Multimedia Developer
AC&S LTD
35A Victoria Road East
Thornton-Cleveleys
Lancashire
FY5 5BU
UK
<mailto:mark.tomlinson at acns-group.com> paul.beckwith at acns-group.com
<http://www.acns-group.com/> www.acns-group.com
tel:
fax: :
<http://www.plaxo.com/click_to_call?lang=en&src=jj_signature&To=%2B44+1253+8
55+997&Email=mark.tomlinson at acns-group.com> +44 1253 855 997
+44 870 762 6818
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20080509/914a5a56/attachment.html
More information about the Xerte
mailing list