Manqoba
Manqoba
Offline
0
http://www.soundmic.co.za/index.php/albums

Hi All,

How do I change the width of the pictures themselves in the image block?

width:100% and height: say about 200px?

If it has to be done manually - in which file do I edit to achieve this so that there is no grey block on the side of the images and that they fit perfectly?

Thanks
Responses (5)
  • Accepted Answer

    Friday, November 29 2013, 11:35 AM - #Permalink
    0
    you mean in that particular page? the thumbnails?
    you can set the width to 100% with CSS..
    • Manqoba
      more than a month ago
      yeah, so I need the thumbnails to stretch to fit the grey frame/block/div in both artists and albums - and this will be the same settings for any new additional artist pic/album pic in the future?

      http://www.soundmic.co.za/index.php/albums

      Right now the height:160px; and its an element style, I'm not sure which file to edit to change this feature and I tried looking in the css3effects.css in the mlable template css folder
    The reply is currently minimized Show
  • Accepted Answer

    Manqoba
    Manqoba
    Offline
    Tuesday, December 03 2013, 08:07 PM - #Permalink
    0
    Do I change the following:

    if ($width && !$height){
    $height = $src_size[1] * $width / $src_size[0];
    } else if ($height && !$width){
    $width = $src_size[0] * $height / $src_size[1];
    } else if (!$width && !$height){
    $width = $src_size[0];
    $height = $src_size[1];
    }

    Found this in com_muscol - helpers - image.php - lines 53 to 60

    If so - please help me change this so the images width is 100% and the height is 200px for each and every album and artists thumbnail picture?
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, December 08 2013, 04:40 PM - #Permalink
    0
    not really. the current dynamic thumbnail creation will fit the width, NOT the height. if you want to adjust this you must do it with CSS.
    The reply is currently minimized Show
  • Accepted Answer

    Manqoba
    Manqoba
    Offline
    Wednesday, December 11 2013, 08:41 PM - #Permalink
    0
    Hi guys, I'm still struggling with this.

    I'm trying to get this page:

    http://soundmic.co.za/index.php/albums

    To look like this page:

    http://www.joomlathat.com/music-collection/artists

    Only the images, see the images have a set width, which is great, but for some reason it is shrinking the image and forcing a grey block on the side. How and where can I change this so the images fit properly and the height is in proportion to the width?

    Thanks alot!
    The reply is currently minimized Show
  • Accepted Answer

    Manqoba
    Manqoba
    Offline
    Wednesday, December 11 2013, 09:17 PM - #Permalink
    0
    It is somehow putting inline style into each image making the height 160px, how can I change this?

    Thank you! :-)
    • Germinal Camps
      more than a month ago
      well if you need this in the MODULE (featured artists), the place would be /modules/mod_muscol_featured_artsists/tmpl/grid.php
    The reply is currently minimized Show
Your Reply