You are not logged in.
Pages: 1
When working with the stylelist, is there any way to list a style with a "user friendly" name which is defined elsewhere (either earlier in the page or in an extenal style sheet)?
I can use: config.stylistLoadStyles('p.pink_text { color:pink }', {'p.pink_text' : 'Pretty Pink'});
but it laborious if I need to define a longer style.
Thanks!
Offline
When working with the stylelist, is there any way to list a style with a "user friendly" name which is defined elsewhere (either earlier in the page or in an extenal style sheet)?
I can use: config.stylistLoadStyles('p.pink_text { color:pink }', {'p.pink_text' : 'Pretty Pink'});
You can use
config.stylistLoadStyleSheet('/path/to/mystyles.css', {'p.pink_text' : 'Pretty Pink'});
if you can think of a better way, submit a ticket, or better, a patch
James Sleeman
Offline
You can use
config.stylistLoadStyleSheet('/path/to/mystyles.css', {'p.pink_text' : 'Pretty Pink'});if you can think of a better way, submit a ticket, or better, a patch
I couldn't get the above code to work. I don't know what I was doing wrong, but the following worked for me:
xinha_config.stylistLoadStylesheet('http://www.path-to-my.com/styles.css');
xinha_config.stylistLoadStyles('.pink_text', {'p.pink_text' : 'Pretty Pink'});
where p.pink_text is defined in styles.css
cheers,
Gill
Offline
Pages: 1