vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Grid - How-To? (https://vborg.vbsupport.ru/showthread.php?t=278052)

Kraxell 02-04-2012 02:35 PM

Grid - How-To?
 
1 Attachment(s)
Hello,

i want a special grid.

Its like the standart-grid but with 4 or 5 boxex above the main-box.

I make a little screen (attachmend)

Anyone know, how i solve this?

Regards

Lynne 02-04-2012 04:37 PM

Create a grid that has a header in that space, then flatten the grid and edit it to add those five boxes.

Kraxell 02-04-2012 04:46 PM

Sorry but i dont know exactly how i doe this....

I found this grid:

HTML Code:

<div id="doc3">
        <div id="hd">
                <div class="yui-u yui-header">
                        <ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
                </div>
        </div>
        <div id="bd">
                <div class="yui-gb">
                        <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 class="yui-u yui-panel">
                                <ul class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul>
                        </div>
                </div>
        </div>
        <div id="ft">
                <div class="yui-u yui-footer">
                        <ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul>
                </div>
        </div>
</div>

But how i must change the header-part?

Lynne 02-04-2012 04:55 PM

You'll need to modify this area to add in five <divs> all with a class that sets the widths to about 19% or so:

<ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>

Kraxell 02-04-2012 05:36 PM

Thank you Lynne.
How i set the widths?

Is this correkt?

HTML Code:

                        <ul style="width:19%" class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
and this 4 times in div class yui-u yui-header?

Lynne 02-04-2012 05:48 PM

Yes, except make sure to always change the id and the $column number (those need to match and be unique - column[1] with widgetlist_column1, column[6] with widgetlist_column6, column[7] with widgetlist_column7, etc)

You may need to add more style like float them left, but you can figure that out afterwards.

Kraxell 02-04-2012 05:56 PM

Yes. Thanks for your great and fast support/help. I'll try it later and give feedback than.

--------------- Added [DATE]1328386679[/DATE] at [TIME]1328386679[/TIME] ---------------

One Problem now:
The boxes are below of each other but i want them next to the other.

My code:

HTML Code:

<div id="doc3">
        <div id="hd">
                <div class="yui-u yui-header">
                        <ul style="width:24%" class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>       
                        <ul style="width:24%" class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
                        <ul style="width:24%" class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
                        <ul style="width:24%" class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul>                       
                </div>
        </div>
        <div id="bd">
                <div class="yui-gb">
                        <div class="yui-u first yui-panel">
                                <ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul>
                        </div>
                        <div class="yui-u yui-panel">
                                <ul class="list_no_decoration widget_list" id="widgetlist_column6">$column[6]</ul>
                        </div>
                        <div class="yui-u yui-panel">
                                <ul class="list_no_decoration widget_list" id="widgetlist_column7">$column[7]</ul>
                        </div>
                </div>
        </div>
        <div id="ft">
                <div class="yui-u yui-footer">
                        <ul class="list_no_decoration widget_list" id="widgetlist_column8">$column[8]</ul>
                </div>
        </div>
</div>

I tried to give everey ul-tag his own div class="yui-u yui-header"-tag but didnt work too....

Lynne 02-05-2012 04:13 AM

Instead of using <ul> tags, try using <div> tags and make sure you float them all to the left. If you have more problems, please post a link so we can see the actual grid in use and see what is going wrong.

Kraxell 02-05-2012 07:12 AM

Hello Lynne,

I change the code now to this:

HTML Code:

<div id="doc3">
        <div id="hd">
                <div class="yui-u yui-header">
                        <ul style="width:24%;float:left" class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>       
                        <ul style="width:24%;float:left" class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
                        <ul style="width:24%;float:left" class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
                        <ul style="width:24%;float:left" class="list_no_decoration widget_list" id="widgetlist_column4">$column[4]</ul>                       
                </div>
        </div>
        <div id="bd">
                <div class="yui-g">
                        <div class="yui-tvb-l25 first yui-panel">
                                <ul class="list_no_decoration widget_list" id="widgetlist_column5">$column[5]</ul>
                        </div>
                        <div class="yui-tvb-l50 first yui-panel">
                                <ul class="list_no_decoration widget_list" id="widgetlist_column6">$column[6]</ul>
                        </div>
                        <div class="yui-tvb-l25 first yui-panel">
                                <ul class="list_no_decoration widget_list" id="widgetlist_column7">$column[7]</ul>
                        </div>
                </div>
        </div>
        <div id="ft">
                <div class="yui-u yui-footer">
                        <ul class="list_no_decoration widget_list" id="widgetlist_column8">$column[8]</ul>
                </div>
        </div>
</div>

And it works! :)

One little question:

Is it possible to add space between the boxes?
http://allround-board.net/content/

Look at the right side, there are to many spaces.

--------------- Added [DATE]1328466412[/DATE] at [TIME]1328466412[/TIME] ---------------

Ok, dont work :(

It work for a while but now it didnt work (the left area below the header-parts switched to the right)

Kraxell 02-06-2012 07:48 AM

Push.....

Lynne 02-06-2012 04:48 PM

I need a link to see the grid in order to see what is wrong.

Also, I would suggest looking at your site with the browser set at different widths.

Kraxell 02-06-2012 05:18 PM

Hello Lynne,

ok, i'll make a little area with this grid, than u can take a look.

I post the link than.

--------------- Added [DATE]1328559259[/DATE] at [TIME]1328559259[/TIME] ---------------

http://allround-board.net/content/268-grid-test

So, u can take a little look :)

If i use an other browser-width, than it works. But how can i use it on 1024-width?

Browser-Width which dont work:
until 1440x900

Lynne 02-06-2012 06:56 PM

You have a few things wrong... you only use the class first for the first box in a row (in your class bd div). And your header shouldn't use yui-u ,but should use yui-g. So, make those three changes and then see how it is.

Kraxell 02-06-2012 07:02 PM

ehm....dont understand exactly.

i have change header to yui-g but what you mean with the other? (bd div)

/EDIT

Ahhhh xD Sorry, now i understand :)

Ill try it.

--------------- Added [DATE]1328562673[/DATE] at [TIME]1328562673[/TIME] ---------------

Soooo....now the last question :)

How do you think can i make a better look? Because there is a many space on the right side.

Is it possible to change the boxes to 25% (4x25%=100%) or do you have any other idea to solve this problem?

Lynne 02-06-2012 11:44 PM

Actually, see how it is done here - http://developer.yahoo.com/yui/examp.../grids-gg.html

pwhitehead 05-31-2013 08:20 PM

Quote:

Originally Posted by Lynne (Post 2297044)
Actually, see how it is done here - http://developer.yahoo.com/yui/examp.../grids-gg.html

Is there finally a grid making program out? Does Dreamweaver have a grid making system?

Zachery 05-31-2013 09:40 PM

No grid making program that I'm aware of.

pwhitehead 05-31-2013 11:06 PM

Quote:

Originally Posted by Zachery (Post 2425150)
No grid making program that I'm aware of.

Zach, any sites or tutorials you can refer me too? I cant find any good tutorials that explains the grid system for vbulletin. I went to the YUI site lynn linked but its not vbulletin friendly. Thanks


All times are GMT. The time now is 10:54 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
  • Page Generation 0.02029 seconds
  • Memory Usage 1,787KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete