![]() |
CMS Fixed Left and Right Columns GRID
1 Attachment(s)
After finding very little information to help CMS novices like me to get fixed width left and right columns, and having to work it out for myself, I thought I'd share with those who are still struggling with the default vB 4.0.6 grid layouts being insufficient for your needs.
The key is to download the default grids.xml to see how they're made: Grid Manager > Download/Upload Grids. I needed both the right and left columns to be of fixed widths (180px & 240px) and with a fluid middle column (100%). See the code below to see how easy it is to accomplish yourself: PHP Code:
http://img37.imageshack.us/img37/7082/gridyl.jpg I've attached the above grid as an .xml document for your convenience. |
Do you have time to explain it to me. I don't see where the width parameters are. I am not good with HTML or PHP, I just muddle through it. I'd like to take yours and make a 200-fluid-250 grid.
|
Quote:
To change my grid to what you require just change the numbers within the brackets. from: (180px, 100%, 240px) to: (200px, 100%, 250px) It really is that simple :). The only other edit that needs to be made would be if any of the three columns were being changed from a fixed to fluid or fluid to fixed width. It's not in your case so you don't have to be concerned about it. Fixed width columns need to use: <div class="yui-u first yui-sidebar"> Whereas fluid width columns need to use: <div class="yui-u yui-panel"> Try this. I've only changed the size values within the brackets. PHP Code:
|
I copied this and it just gives me everything in one big column. I need a 20%, 60%, 20%, so I changed the sidebar to panel, took out the first, but the last one has a b instead of a u. Any ideas?
Chris |
Quote:
I've attached (removed-didn't work) this new grid for you to try. Hopefully it works :p. NOTE: I'm unsure whether the name displayed for each grid is derived from the code or the .xml document name and so I've played it safe with the naming of this new .xml document. Before you upload this new grid, download your default grid.xml ... just in case things don't work. |
Didn't work again...the names of the div class is wrong
|
Quote:
IE: PHP Code:
|
1 Attachment(s)
No, unfortunately. Here's what it looks like now. There's one column on the left and the other two or sort of stacked on top of each other.
|
Quote:
|
I've discovered it's all in the vbcms.css file
|
Quote:
|
I fixed it by just changing the css. I was able to add one for 15%, but for whatever reason when I tried to add one for 20% to make a 15%, 65%, 20% it wouldn't work unless I used the existing one they had in there. Very confusing...
|
Quote:
|
k, so I've decided to go to a fixed, fluid, fixed combo for the grid, but I can't figure it out...imagine that. Can anyone on here tell me how to do a 200px, 100%, 200px and a 240px, 100%, 240px grid xml? Thanks for the help,
Chris |
Try these. No guarantee that they'll work though. I've removed my CMS in favour of using Logician's Webtemplates and so I can't test on my board. If they don't work then those widths probably aren't defined in the .css
PHP Code:
PHP Code:
|
I appreciate it...I ended up hiring a guy to knock it out...sick of messing with it, honestly.
Chris |
All times are GMT. The time now is 06:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|