The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Grid Layout
From finding different bits of information i managed to make a grid that you can see in action at www.eteknix.com
My code is: Layout Manager UI HTML Code:
<div id="doc3" class="yui-t5"> <div id="bd"> <div id="yui-main"> <div class="yui-b"> <div class="yui-gf"> <div class="yui-u first yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul> </div> <div class="yui-g yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul> </div> <div class="yui-g"> <div class="yui-u first yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul> </div> <div class="yui-u yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul> </div> </div> </div> </div> </div> <div class="yui-b yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul> </div> </div> </div> Code:
<style type="text/css"> .yui-u {width: 18%;} .yui-tvb-l50 {width: 60%;} </style><div id="doc3" class="yui-t5"> <div id="bd"> <div id="yui-main"> <div class="yui-b"> <div class="yui-gf"> <div class="yui-u first yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul> </div> <div class="yui-g yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul> </div> <div class="yui-g"> <div class="yui-u first yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul> </div> <div class="yui-u yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul> </div> </div> </div> </div> </div> <div class="yui-b yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul> </div> </div> </div> Before i had the new layout (2 colums within the width of 1) which looks like this: I was using this code: Code:
<style type="text/css"> .yui-tvb-l25 {width: 18%;} .yui-tvb-l50 {width: 60%;} </style> I will quite happily upload this grid once it's sorted for other people to use Thanks, Andy |
#2
|
|||
|
|||
The .yui-t5 code is specifying a 240px sidebar (on the right), and the .yui-gf code is forcing the other columns to be 1/4, 3/4.
You can find a YUI code cheetsheet at http://yuiblog.com/assets/pdf/cheatsheets/css.pdf and a simple grid builder at http://developer.yahoo.com/yui/grids/builder/ Hope that helps |
#3
|
|||
|
|||
Sadly that grid builder doesn't help as you can't tell it to use 2 columns (one each side)
I'm not using a sidebar at all, just columns. Finding this really hard Andy |
#4
|
|||
|
|||
i was looking the same thing like you are looking for but i couldnt find it,
it would really help if somebody show us to do it without sidebar |
#5
|
||||
|
||||
If you want the right and left columns the same width, why don't you make a grid with No Sidebar and then Columns set to 25/50/25? That makes the left and right columns 25% and then center one 50%? Is that how you want it?
|
#6
|
|||
|
|||
Quote:
Andy |
#7
|
||||
|
||||
So add it after you flatten it. Something like:
HTML Code:
<style type="text/css"> .top {width: 100% !important;} .bottom {clear: both; width: 100% !important;} </style> <div id="doc3"> <div id="bd"> <div class="yui-g"> <div class="yui-tvb-l25 first yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul> </div> <div class="yui-tvb-l50 first yui-panel"> <div class="yui-g top"> <ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul> </div> <div class="yui-g bottom"> <div class="yui-u first"> <ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul> </div> <div class="yui-u"> <ul class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul> </div> </div> </div> <div class="yui-tvb-l25 first yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul> </div> </div> </div> </div> |
#8
|
|||
|
|||
That didn't work Lynne
Gave me a layout like this (see attachment) Andy |
#9
|
|||
|
|||
My layout works and looks like this:
Using this code: Layout Manager UI HTML Code:
<div id="doc3" class="yui-t5"> <div id="bd"> <div id="yui-main"> <div class="yui-b"> <div class="yui-gf"> <div class="yui-u first yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul> </div> <div class="yui-g yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul> </div> <div class="yui-g"> <div class="yui-u first yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul> </div> <div class="yui-u yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul> </div> </div> </div> </div> </div> <div class="yui-b yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul> </div> </div> </div> Code:
<style type="text/css"> .yui-u {width: 18%;} .yui-g {width: 60%;} </style> <div id="doc3" class="yui-t5"> <div id="bd"> <div id="yui-main"> <div class="yui-b"> <div class="yui-gf"> <div class="yui-u first yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul> </div> <div class="yui-g yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul> </div> <div class="yui-g"> <div class="yui-u first yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul> </div> <div class="yui-u yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul> </div> </div> </div> </div> </div> <div class="yui-b yui-panel"> <ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul> </div> </div> </div> Andy |
#10
|
||||
|
||||
Are you using 4.0.8? This is what it looks like for me:
I put that same code in both boxes for my grid. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|