For your main page and all profiles choose either the three column main page code or the two column main page code Then place the code in your NC custom code box. you can also place the code in your main design studio that will give your members a choice to be able to change it back to the default width. They just have to change themes in their design studio.

For an individual profile copy the bottom code and paste it in your profiles design studio for just your profile :-)

since a lot of Ning networks are different You may need to tweak the code or add some extra codes.. If so I'll be more than happy to adjust it or write new codes for your network.

Before my code

After

 

 

 

 

 

 

 

 

 

 

 

 

This code is for a three column main page and all profiles

<style>
DIV#xg.xg_widget_main.xg_widget_main_index.xg_widget_main_index_index,
DIV#xg.xg_widget_profiles.xg_widget_profiles_profile.xg_widget_profiles_profile_show{
width: auto!important;
margin-left: auto!important;
 margin-right: auto!important;
 padding-left: auto!important;
 padding-right: auto!important;}
.xg_widget_main_index_index #xg_body,
.xg_widget_profiles_profile #xg_body {
     width: 1202px!important;
     margin: 0px!important;
     padding: 0px 10px!important; }
.xg_widget_main_index_index #xg_body,
 .xg_widget_profiles_profile  #xg_body{
     margin-left: auto!important;
     margin-right: auto!important;}
.xg_widget_main_index_index .xg_span-7,
.xg_widget_main_index_index .xg_span-5,
.xg_widget_main_index_index .xg_span-4,
 .xg_widget_profiles_profile .xg_span-4,
 .xg_widget_profiles_profile .xg_span-7,
 .xg_widget_profiles_profile .xg_span-5{
     float: right!important;width:322px!important;}
.xg_widget_main_index_index div.xg_span-16, .xg_widget_main_index_index div.xg_3col,
 .xg_widget_profiles_profile div.xg_span-16, .xg_widget_profiles_profile div.xg_3col {
     width: 875px!important;}
.xg_widget_main_index_index div#xg_layout_column_1,
  .xg_widget_profiles_profile div#xg_layout_column_1{
     width:200px!important;}
.xg_widget_main_index_index div#xg_layout_column_2,
 .xg_widget_profiles_profile div#xg_layout_column_2{
     width:660px!important;
     float:left!important;
     padding-left: 3px!important;}
 .xg_widget_main_index_index_show .xg_span-14 #xg_canvas .xg_3col .xg_2col img,
 .xg_widget_main_index_index_apps .xg_span-14 #xg_canvas .xg_3col .xg_2col img,
 .xg_widget_profiles_profile_show .xg_span-14 #xg_canvas .xg_3col .xg_2col img,
 .xg_widget_profiles_profile_apps .xg_span-14 #xg_canvas .xg_3col .xg_2col img{
     max-width:520px!important; }
 .xg_widget_profiles_profile_show .xg_module_comment_wall embed {
     min-width: 485px!important;
     min-height: 275px!important;}
 .xg_widget_profiles_profile_show .xg_module_comment_wall img {
     max-width: 508px!important; }
.xg_widget_profiles_profile DIV#xj_message_container SPAN TABLE{
   Width:583.5px!important;}
 .xg_widget_profiles_profile dl.comment{
     border:none!important;
     min-width: 600px!important; }
 .xg_widget_main_index_index .xg_span-14 #xg_canvas .xg_3col .xg_2col iframe,
 .xg_widget_profiles_profile_show .xg_span-14 #xg_canvas .xg_3col .xg_2col iframe {
     min-width: 500px!important;
     min-height: 275px!important;}
 .xg_widget_main_index_index DIV#xg_layout_column_2 .xg_module.module_photo .xj_embed_container embed,
 .xg_widget_profiles_profile_show DIV#xg_layout_column_2 .xg_module.module_photo .xj_embed_container embed {
     min-width: 658px!important;
     min-height: 415px!important;}
.xg_3col .module_photo .body_list .clist li {
    margin: 0px 34px 0px;}
DIV.xg_module.module_video DIV.xg_module_body.body_large LI  {
    margin: 0px 34px 0px!important;}
</style>

 

 

This code is for your a two column main page and all profiles

<style>
DIV#xg.xg_widget_main.xg_widget_main_index.xg_widget_main_index_index,
DIV#xg.xg_widget_profiles.xg_widget_profiles_profile.xg_widget_profiles_profile_show{
 width: auto!important;
 margin-left: auto!important;
  margin-right: auto!important;
  padding-left: auto!important;
  padding-right: auto!important;}
  .xg_widget_main_index_index #xg_body,
 .xg_widget_profiles_profile #xg_body {
      width: 1202px!important;
      margin: 0px!important;
      padding: 0px 10px!important; }
.xg_widget_main_index_index #xg_body,
  .xg_widget_profiles_profile  #xg_body{
      margin-left: auto!important;
      margin-right: auto!important;}
  .xg_widget_profiles_profile .xg_span-4,
  .xg_widget_profiles_profile .xg_span-7,
  .xg_widget_profiles_profile .xg_span-5{
      float: right!important;width:322px!important;}
  .xg_widget_profiles_profile div.xg_span-16, .xg_widget_profiles_profile div.xg_3col {
      width: 875px!important;}
   .xg_widget_profiles_profile div#xg_layout_column_1{
      width:200px!important;}
  .xg_widget_profiles_profile div#xg_layout_column_2{
      width:660px!important;
      float:left!important;
      padding-left: 3px!important;}
  .xg_widget_profiles_profile_show .xg_span-14 #xg_canvas .xg_3col .xg_2col img,
  .xg_widget_profiles_profile_apps .xg_span-14 #xg_canvas .xg_3col .xg_2col img{
      max-width:520px!important; }
  .xg_widget_profiles_profile_show .xg_module_comment_wall embed {
      min-width: 485px!important;
      min-height: 275px!important;}
  .xg_widget_profiles_profile_show .xg_module_comment_wall img {
      max-width: 508px!important; }
 .xg_widget_profiles_profile  DIV#xj_message_container SPAN TABLE{
    Width:583.5px!important;}
  .xg_widget_profiles_profile dl.comment{
      border:none!important;
      min-width: 600px!important; }
  .xg_widget_profiles_profile_show .xg_span-14 #xg_canvas .xg_3col .xg_2col iframe {
      min-width: 500px!important;
      min-height: 275px!important;}
  .xg_widget_profiles_profile_show div#xg_layout_column_2 .xg_module.module_photo .xj_embed_container embed {
      min-width: 658px!important;
      min-height: 415px!important;}
.xg_widget_main_index_index DIV.xg_3col.first-child,
 .xg_widget_main_index_index .xg_column.xg_span-14 {
      width:870px!important;
      float:left!important;
      padding-left: 3px!important;}
   .xg_widget_main_index_index .xg_column.xg_span-14 .xg_module.module_photo .xj_embed_container embed {
      min-width: 870px!important;
      min-height: 415px!important;}
  .xg_widget_main_index_index_show .xg_column.xg_span-14 img,
  .xg_widget_main_index_index_apps .xg_column.xg_span-14 img{
      max-width:870px!important; }
 </style>

 

 

 

this code is for just your profile  the code goes in your design studio on your profile

<style>
DIV#xg.xg_widget_profiles.xg_widget_profiles_profile.xg_widget_profiles_profile_show{
width: auto!important;
margin-left: auto!important;
 margin-right: auto!important;
 padding-left: auto!important;
 padding-right: auto!important;}
.xg_widget_profiles_profile #xg_body {
     width: 1202px!important;
     margin: 0px!important;
     padding: 0px 10px!important; }
 .xg_widget_profiles_profile  #xg_body{
     margin-left: auto!important;
     margin-right: auto!important;}
 .xg_widget_profiles_profile .xg_span-4,
 .xg_widget_profiles_profile .xg_span-7,
 .xg_widget_profiles_profile .xg_span-5{
     float: right!important;width:322px!important;}
 .xg_widget_profiles_profile div.xg_span-16, .xg_widget_profiles_profile div.xg_3col {
     width: 875px!important;}
  .xg_widget_profiles_profile div#xg_layout_column_1{
     width:200px!important;}
 .xg_widget_profiles_profile div#xg_layout_column_2{
     width:660px!important;
     float:left!important;
     padding-left: 3px!important;}
 .xg_widget_profiles_profile_show .xg_span-14 #xg_canvas .xg_3col .xg_2col img,
 .xg_widget_profiles_profile_apps .xg_span-14 #xg_canvas .xg_3col .xg_2col img{
     max-width:520px!important; }
 .xg_widget_profiles_profile_show .xg_module_comment_wall embed {
     min-width: 485px!important;
     min-height: 275px!important;}
 .xg_widget_profiles_profile_show .xg_module_comment_wall img {
     max-width: 508px!important; }
.xg_widget_profiles_profile  DIV#xj_message_container SPAN TABLE{
   Width:583.5px!important;}
 .xg_widget_profiles_profile dl.comment{
     border:none!important;
     min-width: 600px!important; }
 .xg_widget_profiles_profile_show .xg_span-14 #xg_canvas .xg_3col .xg_2col iframe {
     min-width: 500px!important;
     min-height: 275px!important;}
 .xg_widget_profiles_profile_show div#xg_layout_column_2 .xg_module.module_photo .xj_embed_container embed {
     min-width: 658px!important;
     min-height: 415px!important;}
</style>

Tags: CSS, Column, profile, width

Views: 1274

Reply to This

Replies to This Discussion

Amazing examples and seemingly AWESOME tip George, however, I tried both CC and Advanced DS, this seemed to have no effect at all... ? Weird!

This will likely make it so that I have to adjust all those other codes too right?

I've wanted this ability since I built Addictapic, I hate that wasted space! Have you ever seen a Ning site (normal body, no CSS to stretch) on a 27" imac? It is HORRIBLE!! One thin line of body down the middle of the enormous screen, and two HUGE wasted spaces left and right. This TIP would save the day George!

Any idea why it won't work for me? Thank you my friend, hope all is well by the way! :)

hmmm..

only effects the portfolio page as far as I can tell... That right column in your picture wasn't there before, it was being hidden...

I was thinking more of leaving everything as it currently is on my network, even with your other codes.. just literally stretching that yellow bordered area to the edge throughout the entire network, that way AP is basically full screen.. but nothing changed "layout" wise, as it sits now.

That probably means that if you had codes to stretch my canvas body on all pages, I could go through your other codes (hide column/stretch right column) codes and adjust each code's width for right column manually, to make it all fit again... right?

I don't mind doing a little work here George, :) you do a lot already! :)

If it will take "other" codes other than what is posted in this TIP, then I can totally wait till another time, when you get the chance to give AP the next round. :)

one reason it's not working for you You've already Customize your columns and layouts and removed the third column. you're already overwriting the width of the page twice. so with yours we have to add the word important.

As usual George, you rock but wait, I'm confused.  For profile page only or whole network as well?  I uploaded it in my Custom Code area [Design Studio using Firefox] and it works beautifully on the profile page however I see no change on the home page.  I haven't altered my column widths; in fact just switched over to DS yesterday.  I'm probably doing something wrong [as usual]

I made it just for profiles Because there are two column main pages and a three column main pages.  I would've had to write at least two separate codes... but just for you I wrote this one for all profiles and the main page it must be a three column main page for this code to work I've tested it on yours :-) I'll include a snapshot under the code :-) you have a great night and enjoy the code Kos :)

I'm going to eventually write the code for the Whole network..

this is the code for a three column main page & three column Profiles :-)

<style>
DIV#xg.xg_widget_main.xg_widget_main_index.xg_widget_main_index_index,
DIV#xg.xg_widget_profiles.xg_widget_profiles_profile.xg_widget_profiles_profile_show{
width: auto!important;
margin-left: auto!important;
 margin-right: auto!important;
 padding-left: auto!important;
 padding-right: auto!important;}
.xg_widget_main_index_index #xg_body,
.xg_widget_profiles_profile #xg_body {
     width: 1202px!important;
     margin: 0px!important;
     padding: 0px 10px!important; }
.xg_widget_main_index_index #xg_body,     
 .xg_widget_profiles_profile  #xg_body{
     margin-left: auto!important;
     margin-right: auto!important;}
.xg_widget_main_index_index .xg_span-7,     
.xg_widget_main_index_index .xg_span-5,     
.xg_widget_main_index_index .xg_span-4,    
 .xg_widget_profiles_profile .xg_span-4,
 .xg_widget_profiles_profile .xg_span-7,
 .xg_widget_profiles_profile .xg_span-5{
     float: right!important;width:322px!important;}
.xg_widget_main_index_index div.xg_span-16, .xg_widget_main_index_index div.xg_3col,    
 .xg_widget_profiles_profile div.xg_span-16, .xg_widget_profiles_profile div.xg_3col {
     width: 875px!important;}
.xg_widget_main_index_index div#xg_layout_column_1,     
  .xg_widget_profiles_profile div#xg_layout_column_1{
     width:200px!important;}
.xg_widget_main_index_index div#xg_layout_column_2,    
 .xg_widget_profiles_profile div#xg_layout_column_2{
     width:660px!important;
     float:left!important;
     padding-left: 3px!important;}
 .xg_widget_main_index_index_show .xg_span-14 #xg_canvas .xg_3col .xg_2col img,
 .xg_widget_main_index_index_apps .xg_span-14 #xg_canvas .xg_3col .xg_2col img,     
 .xg_widget_profiles_profile_show .xg_span-14 #xg_canvas .xg_3col .xg_2col img,
 .xg_widget_profiles_profile_apps .xg_span-14 #xg_canvas .xg_3col .xg_2col img{
     max-width:520px!important; }
 .xg_widget_profiles_profile_show .xg_module_comment_wall embed {
     min-width: 485px!important;
     min-height: 275px!important;}
 .xg_widget_profiles_profile_show .xg_module_comment_wall img {
     max-width: 508px!important; }
.xg_widget_profiles_profile DIV#xj_message_container SPAN TABLE{
   Width:583.5px!important;}
 .xg_widget_profiles_profile dl.comment{
     border:none!important;
     min-width: 600px!important; }
 .xg_widget_main_index_index .xg_span-14 #xg_canvas .xg_3col .xg_2col iframe,     
 .xg_widget_profiles_profile_show .xg_span-14 #xg_canvas .xg_3col .xg_2col iframe {
     min-width: 500px!important;
     min-height: 275px!important;}
 .xg_widget_main_index_index .xg_module.module_photo .xj_embed_container embed,     
 .xg_widget_profiles_profile_show .xg_module.module_photo .xj_embed_container embed {
     min-width: 658px!important;
     min-height: 415px!important;}
</style>

Oh wow!!!  I guess I was confused by the initial post when it referenced "whole network" but this, this.......you've left me speechless [a feat rarely achieved, let me tell you].   I cannot thank you more and know that others with 3-column will thank you as well.   In fact I know a few Creators I'm going to go share the news with right now.  *LOL*  Just incredible; thank you once again George.

It's all your fault Kos lol :) I went ahead and wrote the codes for Three column & two column main pages..  thank you for the compliment :-)

If you want your navigation tabs centered here's the code for that :-)

DIV#xg_navigation UL {
     text-align: center;}
.xg_theme #xg_navigation ul li {
    display: inline-block;
    vertical-align: middle;
    float: none;}

you have a great week Kos :)

Now come on George, you know It's always the chicks fault! *LOL*   Yeah, I had a code to center the nav but somehow removed it along the way and never got around to reinserting.  Thanks for the reminder.  My memory is going in my old age.  You have a great week as well.

Hello George

We have just started our new site One Stop Social Network www.onestopsocialnetwork.com. Please can you help ? Do you have a code to help make our main page wider?

We would be grateful for any help

Did you try the one a few comments above?  Worked perfectly in my 3-column layout once placed in Custom Code

Hello Kos

Thank you for telling us, we just put the code in :) If you like to have a look and let us know what you think .

It's popping right up, no delay.  Nice and wide

RSS

Latest Activity

Larry Matthews replied to Larry Matthews's discussion 'Photos'
"I have a script for ning 2.0 that uses these classes below.  I was trying to convert it to…"
7 minutes ago
Gary Lefko replied to Allison Leahy's discussion 'General feedback'
"Thx for quick response!"
14 minutes ago
Melinda Orr replied to JFarrow's discussion 'Ning Emails Going to Spam?'
"Chris I'm experiencing the same problem with my site...did you get this issue resolved? Any…"
33 minutes ago
John Bizley replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"You are welcome CocteauBoy and yes by seeing them side by side you get a better idea. My site will…"
37 minutes ago
John Bizley replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Hi Dustin and thanks for your kind remarks about my site. To get the texture for my content I used…"
44 minutes ago
Allison Leahy replied to Allison Leahy's discussion 'General feedback'
"Hi Gary, If you were to transition your Ning 2.0 Network to the Ning 3.0 Platform and membership…"
45 minutes ago
Suzie Nielsen replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
" Dustin, Please check my 3.0 site, I would like to discuss linking to your site in my…"
53 minutes ago
Writer Chick {Diane} replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"It's the versatility of it that I like, AND the fact that I can now make my network look…"
57 minutes ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service