roger64...I think you may have that the wrong way round. Shorthand margin values are like this:
margin: 0;
margin: 0 1em;
margin: 0 1em 1em;
margin: 1em 0em 0em 1em;
The long form or explicit form is like this:
margin-top: 1em;
margin-bottom: 1em;
margin-left: 0.5em;
margin-right: 0em;
Also the margin value really has nothing whatsoever to do with inline height/width values in an image tag.
You might also like to investigate my new plugin -- ConvertAbs2RelCSSValues -- which converts all cm, mm, inch, pt and pica values to em values in the CSS. It also converts all shorthand forms of 'margin' and 'padding' to the long form. I think reading the release notes for this plugin might also help you understand more about this.
Last edited by slowsmile; 08-15-2017 at 02:38 AM.
|