-
AuthorPosts
-
May 27, 2011 at 8:53 pm #164533
Hi
I curently have the main section setup as
main, left, right
I have resize the right column to 13 as it fits in with a image I have placed there, I though want to auto fit the left column.
<blocks name=”middle” colwidth=”13″>
<block name=”right1″>left</block>
<block name=”right2″>right</block>
<block name=”content-mass-bottom”>content-mass-bottom</block>Any ideas what I need to change and where as the templates are different than in previou versions.
Thanks
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 28, 2011 at 3:12 am #393290Hi,
What do you want to change? Could you give me a example to help me understand your idea clearly?kshama_k Friendkshama_k
- Join date:
- May 2011
- Posts:
- 99
- Downloads:
- 0
- Uploads:
- 12
- Thanked:
- 11 times in 10 posts
May 30, 2011 at 9:03 am #393548i think you can fixed width:auto in css.
Or try this in css:-
/* Left Column —*/
#ja-left .ja-l2 .ja-left1, #ja-left .ja-l2 .ja-left2 { width: 50%; }
#ja-left .ja-l1 .ja-col { width: 100%; } /*use width:auto*//* Right Column —*/
#ja-right { float: right; }
#ja-right .ja-r2 .ja-right1, #ja-right .ja-r2 .ja-right2 { width: 50%; }
#ja-right .ja-r1 .ja-col { width: 100%; }liancung Friendliancung
- Join date:
- June 2011
- Posts:
- 5
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
June 17, 2011 at 4:47 am #396824Hi kshama_k, I have same issue and I have been trying this but no affect. Do you any more idea? thanks.
kshama_k Friendkshama_k
- Join date:
- May 2011
- Posts:
- 99
- Downloads:
- 0
- Uploads:
- 12
- Thanked:
- 11 times in 10 posts
June 17, 2011 at 5:12 am #396827hi liancung
For resize left and right columns, you can make changes in your admin layout, follow the steps and do changes as shown below:
Extentions-> Template Managers->your template->Layout->choose your layout and make changes as:
<blocks name=”middle” >
<block name=”left1″ >left</block>
<block name=”right1″ width=”40″>right</block> /*you can resize the right column here*/
</blocks>liancung Friendliancung
- Join date:
- June 2011
- Posts:
- 5
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
June 20, 2011 at 10:55 pm #397492Hi kshama_k,
Thanks. You are awesome.I started play around the following codes in my layout directory and I got what I want;
defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );
$this->_basewidth = 20;
$positions = array (
‘left1′ =>’left’,
‘left2’ =>”,
‘left-mass-top’ =>”,
‘left-mass-bottom’ =>”,
‘right1′ =>’right’,
‘right2’ =>”,
‘right-mass-top’ =>”,
‘right-mass-bottom’ =>”,
‘content-mass-top’ =>’top’,
‘content-mass-bottom’ =>’bottom’,
‘content-top’ =>”,
‘content-bottom’ =>”,
‘inset1’ =>”,
‘inset2’ =>”
);//$this->customwidth(‘right1’, 25); <== override right1 column width to 25%. Must call before call definePosition. Can call many time to override many columns.
$this->customwidth(‘right1’, 30);
$this->definePosition ($positions); -
AuthorPosts
This topic contains 6 replies, has 4 voices, and was last updated by liancung 13 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum