Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • novinfard Friend
    #176639

    hi,

    I want to add different width for every block, but I can only use same width with this code:

    <blocks name="middle" colwidth="33">
    <block name="right1" style="jaxhtml">home1</block>
    <block name="right2" style="jaxhtml">right</block>
    <block name="left2" style="jaxhtml">main</block>
    </blocks>

    How can I add colwidth for every block element?!

    for example 20% for home1, 40% for main, 20% for right position

    Pirooz bashid
    Best Regards,
    Novinfard

    novinfard Friend
    #451083

    Please help, I can’t migrate to other template framework because of this small issue, please help your framework users. :((

    Winchester Friend
    #451702

    I’m curious about this also. I tried to see if I could set different sizes to each column, but it just won’t work from the layout.

    Anyways, this can be done using CSS.

    One question though. With your layout, you’re expecting to have 4 columns, right?

    | RIGHT1 | RIGHT2 | MAIN CONTENT | LEFT2 |

    Is this correct?

    Best regards,
    H. Winchester Lyon

    novinfard Friend
    #451713

    Thanks
    yes, that’s right.
    Can you help me by explain some more details about this issue?

    Winchester Friend
    #452161

    <em>@novinfard 318022 wrote:</em><blockquote>Thanks
    yes, that’s right.
    Can you help me by explain some more details about this issue?</blockquote>

    Ok.. First of all the layout needs fixing. The style should be xhtml and not jaxhtml.

    <blocks name=”middle” colwidth=”20″>
    <block name=”right1″ style=”xhtml”>home1</block>
    <block name=”right2″ style=”xhtml”>right</block>
    <block name=”left2″ style=”xhtml”>main</block>
    </blocks>

    The HTML this output should look like this

    <div id=”ja-container”>
    <div class=”main”>
    <div id=”ja-mainbody”>
    <div id=”ja-main”></div> <!– Main Content Area –>
    <div id=”ja-left2″></div> <!– Left Column (left2) Area –>
    </div>

    <div id=”ja-right”>
    <div id=”ja-right1″></div> <!– Right Column (right1) Area –>
    <div id=”ja-right2″></div> <!– Right Column (right2) Area –>
    </div>

    </div>
    </div>

    Once you’ve done this you can set the styling for them in your css file.


    #ja-mainbody {width: 60% !important;} /* Holds the content area and left area */
    #ja-right {width: 40% !important;} /* Holds both right areas */

    #ja-main {width: 66.66% !important;} /* This is for the content area */
    #ja-left {width: 33.33% !important;} /* Holds both left areas */

    #ja-left2 {width: 100% !important;} /* This is for the left2 area */

    #ja-right1 {width: 20% !important;} /* This is for the right1 area */
    #ja-right2 {width: 20% !important;} /* This is for the right2 area */

    It going to look like this:

    | LEFT2 | MAIN CONTENT | RIGHT1 | RIGHT2 |

    You might have to do some adjustments to the percentages depending on your styling, but this should do the trick.

    I hope this helps,

    Winchester

    Best regards,
    H. Winchester Lyon

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

This topic contains 5 replies, has 2 voices, and was last updated by  Winchester 12 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum