vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Adding CSS to a widget (https://vborg.vbsupport.ru/showthread.php?t=280943)

pwhitehead 03-31-2012 09:07 PM

Adding CSS to a widget
 
I understand how the cms works and how to make a new widget. The problem im having is sizing the widget half the actual size not auto size inside my grid layout. For example say My grid im placing the widget in is 500px i wana have a widget thats 250px and sit on the right or left side of the grid so i can fill the empty space with whatever.

Lynne 04-01-2012 01:48 AM

You size the widget by changing the grid. So, create a grid that is close to what you want, flatten it, change the css to be what you want, and use that grid as your layout for the section.

pwhitehead 04-01-2012 02:25 AM

Thanks lynn; so basically i can size the grid however i want my layout to be. Kinda same concept of using a grid to make a layout in adobe programs like photoshop. So then once i have my grid set the way i need it, flattening it makes it css form within my file directory? so from there i can go into that directory and edit that grids css once its flattened? Am i right or on the same page?

-edit ( The widget has to be made too before the flattening so that widgets css gets written within the directory of new files i need) Right?

Lynne 04-01-2012 03:30 AM

Flatten the grid, set the CSS, the put in the widget. The widget will fit the size of the space it is given. (You may want to read the CMS Articles over on vb.com.)


All times are GMT. The time now is 07:30 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.01000 seconds
  • Memory Usage 1,706KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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