-
AuthorPosts
-
bowman999 Friend
bowman999
- Join date:
- April 2007
- Posts:
- 119
- Downloads:
- 13
- Uploads:
- 7
- Thanks:
- 25
- Thanked:
- 14 times in 1 posts
May 28, 2014 at 2:38 am #198235I’d like to resize blog category images (see attached image) so that the text on the right fills the gap. However, I can’t work out how to do so. If I so resize the image tag, there is a gap between the smaller image and the text. Thought this would be easy, but can’t seem to make it work.
Can anyone help? Appreciated. John.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 29, 2014 at 9:57 am #537057Hi John,
You can reduce the size of div containing the image by changing the .span via this file: templatesja_argohtmlcom_contentcategoryblog_item.php
<div class="span4 article-row-aside">
<?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
<?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
endif; ?>
src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
<?php endif; ?>
<?php if ($params->get('show_category')) : ?>
<div class="category-name">
<?php $title = $this->escape($this->item->category_title);
$url = '<a href="' . JRoute::_(JATemplateHelper::getCategoryRoute($this->item->catid)) . '" title="'.$title.'">' . $title . '</a>'; ?>
<?php if ($params->get('link_category')) : ?>
<span><?php echo $url ?></span>
<?php else : ?>
<span><?php echo $title ?></span>
<?php endif; ?>
</div>
<?php endif; ?>
</div><div class="span8 article-row-main">
<!-- Aside -->
<aside class="article-aside clearfix">
You can change to the value as you want but make sure that the total span of these 2 divs is equal to 12: http://prntscr.com/3nn8zq
1 user says Thank You to Saguaros for this useful post
bowman999 Friendbowman999
- Join date:
- April 2007
- Posts:
- 119
- Downloads:
- 13
- Uploads:
- 7
- Thanks:
- 25
- Thanked:
- 14 times in 1 posts
May 30, 2014 at 4:02 am #537161That’s much easier than what I have been trying! Thanks.:)
AuthorPostsViewing 3 posts - 1 through 3 (of 3 total)This topic contains 3 replies, has 2 voices, and was last updated by bowman999 10 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Images resize in blog category / front page
Viewing 3 posts - 1 through 3 (of 3 total)