Wednesday, August 03, 2005

Fireworks MX: HTML Preview without margin

This is a quickie. Maybe there's another way to do this but anyway ...
If you press F12 in Fireworks MX you get a preview of what you're working on in a browser - useful when designing a webpage.
By default, the page you see has a white margin around it which is a bit annoying.
To get around this, first change the HTML style (File->HTML Setup) from the default 'Dreamweaver' to 'Generic'. Then edit the file called 'SLICES.XTT', which I found here:
C:\Program Files\Macromedia\Fireworks MX 2004\Configuration\HTML Code\Generic.
In this file replace:

WRITE_HTML("<body bgcolor=\"#", exportDoc.backgroundColor.toString(16), "\"");

with

WRITE_HTML("<body marginwidth=\"0\" marginheight=\"0\" leftmargin=\"0\" topmargin=\"0\" bgcolor=\"#", exportDoc.backgroundColor.toString(16), "\"");


This got rid of the margins for me. Try at your own risk.

1 Comments:

Blogger LN said...

That is brilliant sir! I've been wanting to be able to do that for ages. Works for CS4 too if anyone is interested :)

11:22 AM  

Post a Comment

<< Home