![]() |
CMS Grid help?
I'm trying to make a grid with the following:
3 Columns 310px 100% 180px Code:
<div id="doc3" class="yui-tvb-r2"> But instead of the 310px code showing on the left hand side, it displays on the right. Anyone know how to fix that? Herehttps://vborg.vbsupport.ru/external/2015/05/15.jpg |
Is there some additional code for this? The html you posted is not going to make any column 310px. So, you must have some CSS or something else doing that. Can we get the full code for this grid.
|
Quote:
Code:
<div id="doc3" class="yui-tvb-r2"> |
Well, "first" as a class means it is first in the display (aligned left). And "yui-u" means that each of the blocks are 50%. And "yui-gc" means to take 2/3 width. So, I think you are using all the wrong classes. Also, there is nothing in your html to say that one column is 310px and the other is 100%. Both are called out as "<div class="yui-u yui-panel">", so they have the exact same class.
Try something like this: HTML Code:
<style type="text/css"> |
Quote:
|
Hmmmm, I did that exact one in my CMS and it worked fine. :/ Is there anything in your error_logs (if you don't know where they are, ask your host) when you get that blank page?
|
Quote:
Maybe I'm doing it wrong? Here are the steps that I took, AdminCP> vbCMS> Grid Manager> add new Grid> Paste your supplied code > Save Then created a layout, which returned a single column, this time no blank page. Also, if I add the styling to the additional.css instead of directly in the template, that's when it comes up blank (missing) HTML Code:
.two_columns {float: right;} .col_1 {width: 310px; float:left; margin-right: -320px;} .col_2 { float:left; margin: 0 190px 0 320px;} .col_3 {width: 180px; float: right; margin-left: -190px; } |
I would not add the CSS to the additional.css template - that shows up on every page and you don't need that.
You need to go to Grid Manager > create a grid > Flatten Grid > then Edit and paste that code into both boxes, not just one. Did you do that? |
Quote:
Screenshot: http://www.screencast.com/t/zGbo5s9PgK (also, the div tag is not missing in the top part of the screenshot, there just wasnt room to scroll to show the entire code) Screenshot of the code in flattened grid: http://www.screencast.com/t/fdbpeQNOKO If I go and add the style elements to the additional.css it creates a single box (but no widgets) |
Are you trying this on a default style (that is what I did)?
|
All times are GMT. The time now is 02:31 PM. |
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:
|