Frontpage Featured items with fixed height size

Everything to do with Joomla! 2.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
wizzie_ro
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Mon Nov 28, 2011 9:54 pm

Frontpage Featured items with fixed height size

Post by wizzie_ro » Fri Mar 28, 2014 2:59 pm

Hello there,

I'm working on this site http://www.turism-online.info, based on j2.5.19 and i wondered if anyone can point me the right direction :eek: in order to make the intro text fit into a fixed size box like i did with the title box so it wont mess up the frontpage alignment...

Thanks in advance!

waarnemer
Joomla! Hero
Joomla! Hero
Posts: 2954
Joined: Sun May 04, 2008 12:37 pm

Re: Frontpage Featured items with fixed height size

Post by waarnemer » Fri Mar 28, 2014 3:41 pm

I did that with a jQuery script where the largest in the row is the one which makes the height for the others too.. I did the same with the headers as sometimes these are on one line sometimes on two or more..

some like this:

Code: Select all

	$('.yourRowClass').each(function(){
		var hights = [];
		$(this).find('.yourHeaderClass').each(function(){
			hights.push($(this).height());
		});
		var largest = Math.max.apply(Math, hights);
		$(this).find('.yourHeaderClass').height(largest);
	});
But your blog style does not show rows.. it has columns...........

You probably have to do some template overriding too on your com_content/featured/default.php as well as com_content/category/blog.php

wizzie_ro
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Mon Nov 28, 2011 9:54 pm

Re: Frontpage Featured items with fixed height size

Post by wizzie_ro » Fri Apr 18, 2014 3:10 pm

I've tried to fix that in many ways but no luck for me so far... :-[

For the title area i've added "height: 100px;" into the appropriate css but for the introtext area i can't find a way to do it...

Anyone else would care to leave me a hint?

Thanks in advance!


Locked

Return to “Templates for Joomla! 2.5”