How do I subdivide a column in a 4-column YUI grid.css layout? -


i have yui grid gives me 4 uneven columns:

  <div class="yui-gc">     <div class="yui-gd first">       <div class="yui-u first">reason</div>       <div class="yui-u">scope</div>     </div>     <div class="yui-g">       <div class="yui-u first">related</div>       <div class="yui-u">product</div>     </div>   </div> 

below want have 5 columns, 1 coming breaking scope column 2/3, 1/3. closest can 1/2, 1/2 under scope:

  <div class="yui-gc">     <div class="yui-gd first">       <div class="yui-u first">reasons</div>       <div class="yui-g"> <!-- split scope column -->         <div class="yui-u first">questions</div>         <div class="yui-u">answers</div>       </div>     </div>     <div class="yui-g">       <div class="yui-u first">stuff</div>       <div class="yui-u">products</div>     </div>   </div> 

it seems changing div marked <!-- split scope column --> <div class="yui-gc"> should trick, doesn't.

what missing?

as i'm sure you've tried, .yui-g div should .yui-gc. needs either wrapped in yui-u or have yui-u class in addition yui-gc. yui css file trips on @ point. .yui-gd div.first rule comes after .yui-gc div.first rule in src , clobbers it. result columns arranged 1/3, 2/3 instead of 2/3, 1/3 should be.

alt text

the simplest (as hacky may be) way fix put in inline declaration put column widths should be.

<div class="yui-gc"> <div class="yui-gd first">     <div class="yui-u first">reasons</div>     <div class="yui-u yui-gc">         <div class="yui-u first" style="width: 66%;">questions</div>         <div class="yui-u" style="width: 32%;">answers</div>     </div> </div>  <div class="yui-u yui-g">     <div class="yui-u first">related</div>     <div class="yui-u">product</div> </div> 


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -