Hi,
I am hoping that someone here can help me out on this.
The following code works just fine and gives me a nice margin between
my image to the left and the text that appears adjacent to it on the
right:
<p>Figure 2. xxxx</p>
<img style="float:left; margin-right:14px; margin-bottom:8px;"
src="pic.jpg" width="128" height="473" alt="pic" />
<p>This is a paragraph of text.....</p>
Now I take that inline CSS and add it to my style sheet as follows:
img.ileft {float:left; margin-right:14px; margin-bottom:8px;}
and then use the following HTML:
<p>Figure 2. xxxx</p>
<img class="ileft" src="pic.jpg" width="128" height="473" alt="pic" />
<p>This is a paragraph of text.....</p>
What happens is that while my text still displays to the right of my
image (obviously the float attribute still works), the nice margin
between the image and my text disappears (margin-right fails but as
far as I can tell, margin-bottom still works).
Any ideas? Thanks.
PS. Please reply to the list as the email address is a fake to foil
spammers.
Best Regards, Jim
http://artsnova.com/blog