Problems customizing HTML exporter

  • Hi guys, I´m trying to put a border on my html5 exported games. So I got to C:\Program Files\Construct 2\exporters\html5\templates and changed the style to

    	<style type="text/css">
    		#c2canvasdiv 
    		{
    			border:thick;
    			border-style:ridge;
    		}
    	</style>
    [/code:3g0unfp5]
    if I put this code in the index.html it works, but I dont want to do that every time I export, so I changed export.html directly, but it seams tha C2 override this file every time, so where can I put a default CSS code to my exported games ?
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi guys, I´m trying to put a border on my html5 exported games. So I got to C:\Program Files\Construct 2\exporters\html5\templates and changed the style to

    > 	<style type="text/css">
    		#c2canvasdiv 
    		{
    			border:thick;
    			border-style:ridge;
    		}
    	</style>
    [/code:21974mk2]
    if I put this code in the index.html it works, but I dont want to do that every time I export, so I changed export.html directly, but it seams tha C2 override this file every time, so where can I put a default CSS code to my exported games ?
    

    I didn't try this out yet but I think it could be possible using the CSSimport plugin.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)