Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • salvomic Friend
    #145289

    hi all,
    if I put an image into an article, in JA News 2, it float left *only* if it hasn’t a caption: if I put a caption (title) it doesn’t: why?
    the code report always “img class=”caption” src=”images/stories/sport/basket/andsoon.jpg” border=”0″ title=”Corvino” width=”300″ style=”float: left;” ” but it really doesn’t float to the left…

    any workaround?

    thanks

    salvo

    salvomic Friend
    #320837

    please, no hints?

    micrantha Friend
    #320848

    Hi salvomic,

    I had problems with using the image-align option in Ja News 2: images did not float at all but always stayed on the same spot left, with the text beneath it.

    I changed following code in file:
    mod_janews2/tmpl/blog_item.php

    <div class="ja-zinimg" style="width:<?php echo $img_w;?>px;height:<?php echo $img_h;?>px;">
    <?php echo $image; ?>
    </div>

    Only kept the line

    <?php echo $image; ?>

    In the source code of your page you can see that the div that wraps the image gets the same width and height as the image!
    So: the alignment of the image has only effect within the wrapping div, so not at all.
    I deleted the wrapping div, and now the image-alignment has effect.

    Hope it works in your case.

    salvomic Friend
    #320849

    no, I regret, also doing so there is the same problem: if there is not a “caption” the image float left, it there is a caption initially the image float left (and the text is on the right), but when the page is completely loaded the text go below the image (as there was a “clear both”…)
    My images are always with one side less than 500px, however.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  salvomic 15 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum