Using Cascading Style Sheets in Briefings
Posted: Sat May 28, 2005 10:56 am
I think it is a really nice feature of this game is that you can create briefing files using HTML, much nicer than just reading a text file. If you do it well it really makes your home grown scenarios look professional. So for those that really want to make the most of this opportunity heres some info that isnt in the manual.
You can use Cascading Style sheets to create your briefings. The three main advantages of using CSS are that you can:
[ol]
[*]maintain a consitent appearance easily,
[*]change the appearance quickly without having to edit loads of html code.
[*]Access some nice visual features that plain html just wont do.
[/ol]
The only limitation to this that I have discovered so far is that the game seems only to support those CSS features supported by Netscape. So, things like fixed background images and page borders wont work. Test your briefing files with Netscape and you will soon see what you can, and cant do.
So far I have only used internal style sheets, not sure if external style sheets will work, but I dont see why not.
For a good tutorial on CSS have a look at:
http://www.w3schools.com/css/css_intro.asp
For a good html editor (and cheap!) try
http://www.coffeecup.com/html-editor/
ok, maybe this is only for the nerdy [8D]...but who cares, its fun!!
You can use Cascading Style sheets to create your briefings. The three main advantages of using CSS are that you can:
[ol]
[*]maintain a consitent appearance easily,
[*]change the appearance quickly without having to edit loads of html code.
[*]Access some nice visual features that plain html just wont do.
[/ol]
The only limitation to this that I have discovered so far is that the game seems only to support those CSS features supported by Netscape. So, things like fixed background images and page borders wont work. Test your briefing files with Netscape and you will soon see what you can, and cant do.
So far I have only used internal style sheets, not sure if external style sheets will work, but I dont see why not.
For a good tutorial on CSS have a look at:
http://www.w3schools.com/css/css_intro.asp
For a good html editor (and cheap!) try
http://www.coffeecup.com/html-editor/
ok, maybe this is only for the nerdy [8D]...but who cares, its fun!!