Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • vric Friend
    #186868

    I scratch my head on this one. I try to find where’s the style is applied in this code.

    <div class=”brick brick-big”>
    <div class=”brick-img” style=”height: 444px;”>

    The Height: 444px actually prevent image to be dynamically adjusted in height, which force us to size image square. I need to delete it (on make it auto) but I can’t find it in any php files.

    Or is there a way to “crop” image to use that ratio? Else right now, it always has huge white space between row (most image are rectangular, not square)

    Thanks

    MoonSailor Friend
    #490255

    Hi,

    <blockquote>
    <div class=”brick brick-big”>
    <div class=”brick-img” style=”height: 444px;”>
    </blockquote>

    It’s module type of “Articles Category” – using layout “brick-2-big.php”.

    <blockquote>
    The Height: 444px actually prevent image to be dynamically adjusted in height, which force us to size image square. I need to delete it (on make it auto) but I can’t find it in any php files.
    </blockquote>

    You can open file “templates/ja_argo/html/mod_articles_category/brick.php” find code :

    [PHP]
    <script type=”text/javascript”>
    /* Update height for brick-img */
    /*
    jQuery(window).bind(‘layout-update’, function () {
    var $ = jQuery;
    $(‘.brick-img’).each(function(){
    $(this).css(‘height’, $(this).width());
    });
    });
    */
    jQuery (document).ready(function($){
    updateHeight = function(){
    $(‘.brick-img’).each(function(){
    $(this).css(‘height’, $(this).width());
    });
    }

    updateHeight();
    $(window).bind(‘resize’, updateHeight);
    })
    </script>
    [/PHP]

    We’re using javascript for auto equal height of div with class “brick-img”.

    <blockquote>
    Or is there a way to “crop” image to use that ratio? Else right now, it always has huge white space between row (most image are rectangular, not square)
    </blockquote>

    Because it’s default module of joomla. You need to make your own customization to achieve that.

    Regards

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

This topic contains 2 replies, has 2 voices, and was last updated by  MoonSailor 11 years, 7 months ago.

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