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: 1313

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

Rosas † Negras joined kid k's group
Thumbnail

Ning French Networks

A group for french network creators!See More
10 minutes ago
Andrew Sanderson replied to Andrew Sanderson's discussion 'Video chat for ning network'
"Hi, I just checked it out, it seams like video chat room. Is there any option for one on one…"
38 minutes ago

NC for Hire
JFarrow replied to JFarrow's discussion 'Mega Jaw Dropper: Magic RSS Feed Walls For Ning and Facebook (for 2.0 and 3.0)'
"Are you interested C. Brickhouse?"
40 minutes ago
Kos replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
"Nah I'm not having any success other than to hide the pair unless hovered since they share the…"
44 minutes ago

NC for Hire
JFarrow replied to Andrew Sanderson's discussion 'Video chat for ning network'
"i have a few ideas.  have you looked at Tinychat?"
44 minutes ago
Kos replied to Elshara Silverheart's discussion 'More Feature Requests'
"Thiago I received this from an email directly from Ning and I quote" "
1 hour ago
Diego Biasi joined claudio falvo's group
Thumbnail

Creatori NING Italiani

Il gruppo vuole Essere un punto d'incontro per i creatori di reti NING italiani Che opeano in…See More
1 hour ago
Diego Biasi replied to Diego Biasi's discussion 'Remove SignUp function (but keep SignIn)'
"I tried it, it hides both links Sign Up and Sign In. I want to hide only the Sign Up... "
1 hour ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service