Remove Margin from body in index.html

Get help using Construct 2

Post » Sat Feb 23, 2013 8:55 am

Hi all,

I'm trying to remove the margin the browser shows on the body element in the index.html.

When i load the page in the browser (chrome) I see a margin around the canvas. (the black background becomes visible). I can remove the margin by adding 'margin: 0;' in chrome, to the body element.

But when i add this in the index.html upload the page and refresh the online webpage, nothing happens. I've checked the source code of the page. No extra css. After that i checked the file on the server, there is extra css!

It looks like the extra css is removed from the index.html as soon as the page loads.

Any suggestions how to tackle this?

Thanks in advance!
M4M

EDIT: I think i posted in the wrong forum. Should be "how do i". SorryMark4Media2013-02-23 11:52:47
B
19
S
6
G
3
Posts: 33
Reputation: 2,712

Post » Sat Feb 23, 2013 2:29 pm

As described in this tutorial, you also need to change the offline.appcache file before browsers will think there's an update to your game.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Sat Feb 23, 2013 8:19 pm

Thanks for your reply. Changing the offline.appcache file didn't work. I do not export the project again when i change the index.html.

But as soon i understood what the offline.appcache file did, i knew that clearing the cache of the browser would work. And it did!

M4M
B
19
S
6
G
3
Posts: 33
Reputation: 2,712


Return to How do I....?

Who is online

Users browsing this forum: ETgirl79 and 21 guests