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)
-   -   CMS fixed width (https://vborg.vbsupport.ru/showthread.php?t=281030)

Popa Andrei 04-02-2012 08:23 PM

CMS fixed width
 
Hello there all vb users.
A quick question :D
How can i make mi vb4 cms bi fixed(not the forum,only the cms)?
Thanks in advance.

SEOvB 04-07-2012 02:13 AM

Hey There,

It kind of depends on what you mean by "fixed width". Do you mean making all of the columns each have their own fixed width, or do you mean making the cms as a whole have a fixed width? If the latter, the easiest solution would be to add the following line to your additional.css template:

Code:

.vbcms_content {width: [pixel width here]px; margin: 5px auto;}
If you want each of the columns to have a fixed width, it gets more difficult. The last time I did that was about a year ago; I don't remember the steps exactly, but it involved editing the html of the cms grids by hand. Of course, I could have been doing it wrong :).

-Nick, SEOvB Developer

Popa Andrei 04-07-2012 09:43 AM

yes this centers the content but the navbar stays fluid and it doesent looks nice.

SEOvB 04-08-2012 02:54 AM

Just add the same css declaration to your vbcms.css template.

-Nick, SEOvB Developer

Popa Andrei 04-08-2012 01:20 PM

ok thank you.

SEOvB 04-09-2012 04:18 PM

Correction.. sorry :(

body {width: [pixel width here]px; margin: 0 auto;}

In your vbcms.css template.

Popa Andrei 04-09-2012 07:37 PM

Thank you very much.


All times are GMT. The time now is 09:13 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
  • Page Generation 0.01045 seconds
  • Memory Usage 1,717KB
  • 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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