Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • slewis1972 Friend
    #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 Friend
    #393290

    Hi,
    What do you want to change? Could you give me a example to help me understand your idea clearly?

    kshama_k Friend
    #393548

    i 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 Friend
    #396824

    Hi kshama_k, I have same issue and I have been trying this but no affect. Do you any more idea? thanks.

    kshama_k Friend
    #396827

    hi 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 Friend
    #397492

    Hi 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);

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

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