Forum Moderators: open
There is a problem when using a CSS style to control margins. Dreamweaver's WYS positions the text way out of line with the WYG.
Assuming that this is not just a quirk of my setup, does anyone know any 'work arounds'?
Otherwise I might have to switch to Adobe GoLive (bleagh.. new tool to learn)
PS
I know I should be doing all of this in an HTML editor, but I am lazy and logical discussion about the merits of HTML coding usually convinces my logic circuits but can't get past the firewall set up by my laziness circuits:)
[edit] - just looked at GoLive - its worse - help![/edit]
I am using:
.margintest { font: 12px Arial, Helvetica, sans-serif; color: #CC0000; margin-left: 120px}
When I apply that style to a <span> or <p> tag, it is positioned 90px from the left on DW's Ruler. It scales it to 3/4 of what it should (ie 320px goes to 240 px etc)
If I specify the page margin (in Page Properties) to be 120px it shows 120px
If I create a layer and specify 120px wide, that shows correctly too.
None of these errors show when the site is previewed, but it makes it bl@*dy hard to lay out the page.
Is there something obvious that I have missed?
One line of text and only the one style specified.
I am using DW4 - (I assume you are using the same Knighty?)
I will try it out on a mates machine and see if it is the same on his.
[edit] just tried it on another machine with a virgin installation of DW4, same problem - looks like I am stuck with it[/edit]