Current status of the Ning Platform is always available on the Ning Status Blog.

Forum

How to add a module background image?

Hi, can anybody share the code for a adding a background image to the modules?As you can see in the pic I attached, I found a code to add an image to the module headers, but now I want the code to add an image to the module's backgrounds.ThanksPS: I am working on making a nice dark black ning layout and if you help me I will share the layout when it's finished.

You need to be a member of Ning Creators Network to add comments!

Join Ning Creators Network

Email me when people reply –

Replies

  • Jeff, do you want to add a different image to each module background or one image that will cover all the module backgrounds.
  • Hi Jeff, just put your code where it says 'put jpg code here'

    /* Module Body Background (Individual Modules) */
    .xg_module_body{
    background-color: transparent !important;
    background-image:url(put jpg code here);
    background-position:center 0px;
    background-attachment:relative;
    background-repeat:repeat;
    border: none;
    }

    Change if you want it to not repeat to repeat:no-repeat;
    or 'relative' to 'fixed' if you want the pic fixed.

    Hope this helps.

    It doesn't always look good with a pic here though I must add. I always put mine in the border headers and enlarge the boxes.
  • Thank you
  • Hi i need help. can any one teach me how to add a different image in each module?
  • Would you mind sharing the code for module header image? I can't figure it out :(
    • /* Module Head Picture and Border */
      .xg_module_head {
      background-color: transparent !important;
      background-image:url(add your picture here);
      background-position:center 0px;
      background-repeat:no-repeat;
      height:45px;
      border: 6px inset #000000;
      }
      • oh wow thank you so much!!!
      • Ok, it iis a dum question but, If i have a picture in my computer what will be the code for the picture? I need to first upload it to the network?
        • You need to upload the picture to a photo sharing site like Tinypic or photobucket Lasse, or you could put it into a comment box on your page via the 'camera icon' and before you hit to leave the comment take the code that comes up.
          • Thanks very much....Another question...this code here that you gave us...

            .xg_module_head {
            background-color: transparent !important;
            background-image:url(add your picture here);
            background-position:center 0px;
            background-repeat:no-repeat;
            height:45px;
            border: 6px inset #000000;
            }

            Add in my test page the image to the About Box and in the Box where my name is, not in the head of the page where the title is. What is happening?
This reply was deleted.

Search the Creators Network

Latest Activity

Curtis replied to Ken Rich's discussion Ning to Jamroom - An Empowering Migration Path...
"I'd buy your autobiography but i feel like I have already read it! Lmao...now if this post has anyo…"
6 minutes ago
Curtis replied to Ken Rich's discussion Ning to Jamroom - An Empowering Migration Path...
"Man you just can't stop with the endorsements....how funny"
8 minutes ago
Strumelia replied to Ken Rich's discussion Ning to Jamroom - An Empowering Migration Path...
"The Jamroom forums are administrated capably and efficiently by the platform developers.  I do lear…"
22 minutes ago
Az'ya replied to Az'ya's discussion Custom header CSS for small displays?
"Hi Scarlett, thanks for your reply!I wonder if posting a screen shot works? Just starting to develo…"
31 minutes ago
Scarlett replied to Az'ya's discussion Custom header CSS for small displays?
"Yes this can be done to remove the header on small displays or maybe even have your image resized t…"
50 minutes ago
Curtis replied to Ken Rich's discussion Ning to Jamroom - An Empowering Migration Path...
"I just tell it like it is...
Why would you miss me in the Jamrrom forums? You running that place as…"
1 hour ago
Strumelia replied to Ken Rich's discussion Ning to Jamroom - An Empowering Migration Path...
"Curtis, you're such a charmer!
I sure will MISS YOU over on the Jamroom forums.  Yeah maybe I shoul…"
1 hour ago
Curtis replied to Ken Rich's discussion Ning to Jamroom - An Empowering Migration Path...
"Strummer
I'm on the road to an OU/TT GAME so forgive me if I type like screaming eagle while I driv…"
1 hour ago
Merri Dennis replied to Merri Dennis's discussion Code to duplicate Forum Page with Categories
"I don't need the members with the most posts, but I do need to have the discussions divided by cate…"
1 hour ago
Kos replied to Merri Dennis's discussion Code to duplicate Forum Page with Categories
"ok sorry about that confusion.  I deleted the comment on how to achieve it in 2.0 b/c 3.0 is a diff…"
1 hour ago
Strumelia replied to Ken Rich's discussion Ning to Jamroom - An Empowering Migration Path...
"Just when I think you've scraped the absolute bottom, you lower the bar. This has got to be a new w…"
1 hour ago
Curtis replied to Ken Rich's discussion Ning to Jamroom - An Empowering Migration Path...
"Still spamming....and lying....I'm sorry you wasted your "one hour" here on me with your long winde…"
2 hours ago
Strumelia replied to Ken Rich's discussion Ning to Jamroom - An Empowering Migration Path...
"wtf??  Are you on medications or something???  Holy crap you are vicious.
First of all, although I…"
2 hours ago
Kos replied to Kos's discussion 404 Error - Network Inaccessible
"and poof like magic I'm back up.  smh"
2 hours ago
Merri Dennis replied to Merri Dennis's discussion Code to duplicate Forum Page with Categories
"We are on a 3.0 site, but want our forum page to look like what is shown on the 2.0 screen I pasted."
2 hours ago
Kos replied to Kos's discussion 404 Error - Network Inaccessible
"GoDaddy says nothing has changed in my accounts since 2010...."
2 hours ago
Curtis replied to Ken Rich's discussion Ning to Jamroom - An Empowering Migration Path...
"Thank you I appreciate your efforts to STFU...You know in all my years at NING (and I have been her…"
3 hours ago
Strumelia replied to Ken Rich's discussion Ning to Jamroom - An Empowering Migration Path...
"Wow, that is just so rude.  Having a bad pith helmet day?
Dude, I was only trying to be helpful.  I…"
3 hours ago
Kos replied to Kos's discussion 404 Error - Network Inaccessible
"If I click the link "if you're the site owner - click here" which takes me to a c-panel signin.  id…"
3 hours ago
Kos replied to Merri Dennis's discussion Code to duplicate Forum Page with Categories
"Oh shoot - just noticed that's a 2.0 website and you posted in a 3.0 forum here.  Are you on 2.0 or…"
3 hours ago
More…