Forum Moderators: not2easy
Here is what I think is relevant code:
<div class="right">
<img class="left" style="margin:16px 10px 4px 10px;" src="image-files/image.jpg">
<p style="float:left; font-size:8pt; display:inline;">caption</p>
</div>
.left
{
float:left;
clear:none;
margin:0px;
vertical-align:top;
display: inline;
}
.right
{
float:right;
clear:none;
margin:0px;
vertical-align:top;
display: inline;
}
Is that enough information?
About validating - my host does something to the code that causes some errors. Here are two of the HTML validator errors I'm getting:
"general entity "referrer" not defined and no default entity"
"reference to entity "referrer" for which no system identifier could be generated"
Those errors would not cause a display problem, would they?
The CSS validates okay.
<div class="right">
<img style="margin:16px 10px 4px 10px;" src="image-files/image.jpg">
<br />
Caption
</div>
Just add font-size: and/or line-height: to class="right".?
Perhaps best to restart it properly (display:inline and float:left or right, seem to be somewhat counterintuitive put together, similarly using a class and overriding setting sin the html can confuse you a lot).
There is float problem..after that it should show correct in firefox..
Cheers
Bali
In other words, picture an image on the right and text to the left of that image, with a 10px margin between. The caption under the image is aligned all the way to the left, with the first letter of the caption touching the text next to the image.
How do I scoot the caption over so the beginning of the caption is aligned with the left side of the image?
My original suggestion only: 1) Put the text below the image in the simplest fashion possible (not necessarily best) 2) Suggested that the original code was overly convoluted, particularly if reused and expanded in scope of use over time. You may need to contain the caption within its own box in order gain maximum control.
Note: <dl> can be useful for presenting image and caption layouts. This gives you three boxes, the <dl> is the 'wrapper'. The <dt> controls presentation of the image. The <dd> controls presentation of the caption.
Max Design [maxdesign.com.au] - <dl> resource.
No doubt, plenty of solutions to choose from - you may be offered several other options.