Log in

View Full Version : CMS fixed width


Popa Andrei
04-02-2012, 07:23 PM
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, 01: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:

.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, 08:43 AM
yes this centers the content but the navbar stays fluid and it doesent looks nice.

SEOvB
04-08-2012, 01:54 AM
Just add the same css declaration to your vbcms.css template.

-Nick, SEOvB Developer

Popa Andrei
04-08-2012, 12:20 PM
ok thank you.

SEOvB
04-09-2012, 03:18 PM
Correction.. sorry :(

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

In your vbcms.css template.

Popa Andrei
04-09-2012, 06:37 PM
Thank you very much.