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

TJ @ jQueryHelp replied to American Energy's discussion Pass Parameters through calling a URL
"Kos has provided one very nice solution which may suit your needs.
Some other thoughts...
I think t…"
10 hours ago
Bernadette Arthur replied to Bernard Lama's discussion Killer Tip : How to add seach bar to your ning 3.0 network ?
"Thank you so much!"
10 hours ago
Kos replied to American Energy's discussion Pass Parameters through calling a URL
"Adjust the "height" as needed, add your webpage URL and paste into a content box.  o/c not good for…"
15 hours ago
Jamie Baker replied to Shruti Shah's discussion Cancelling Ning Network
"Happened to me when I closed a site. I emailed them (via a billing support ticket), in a modern day…"
16 hours ago
Kos replied to American Energy's discussion Pass Parameters through calling a URL
"You can embed a page from another website using an iframe

<iframe width="100%" height="HEIGHT" scr…"
16 hours ago
Strumelia replied to PeruCool's discussion Alternatives to Ning social network
"Could also be that Soaring simply disallowed 'comments' on his thread because it said what he wante…"
yesterday
SweetPotato replied to PeruCool's discussion Alternatives to Ning social network
"I hadn't, no, but I tend to unsubscribe after certain people start on with the usual stuff. Hopeful…"
yesterday
Kos replied to PeruCool's discussion Alternatives to Ning social network
"SP have you noticed Ning "closed" a few discussions?  I did.  Especially SE's a week ago.  Maybe th…"
yesterday
Tyler Durbin replied to PeruCool's discussion Alternatives to Ning social network
"I agree 100%.  There are many of us who are actually very happy with our current sites.  The spam s…"
yesterday
Strumelia replied to Shruti Shah's discussion Cancelling Ning Network
"If you have proof that you contacted Ning and requested cancellation BEFORE the renewal happened, t…"
yesterday
Bernard Lama replied to Bernard Lama's discussion Killer Tip : How to add seach bar to your ning 3.0 network ?
"You are most welcome buddy. And I'm sorry I forgot to attach the code. Here you go :D
<!--CUSTOM G…"
yesterday
Bernadette Arthur replied to Bernard Lama's discussion Killer Tip : How to add seach bar to your ning 3.0 network ?
"Thanks for checking Bernard!  I promise it didn't work before!  LOL!

Where's the code that I can r…"
yesterday
Bernard Lama replied to Shruti Shah's discussion Cancelling Ning Network
"When the cancellation process is done then they won't change you any money.You will get notificatio…"
yesterday
Bernard Lama replied to Bernard Lama's discussion Killer Tip : How to add seach bar to your ning 3.0 network ?
"Hi Bernadette,
When I tried to search Bernadette then it worked perfectly. The following screenshot…"
yesterday
Garfield Archivist left a comment for Jennifer Connelly
"Welcome!"
Wednesday
Petter Næss, Daniella Breen, Jonathan Stegman and 4 more joined Ning Creators Network
Tuesday
John Bizley replied to John Bizley's discussion Brand New Facebook Style Photo's page. CODE NOW AVAILABLE
"Thanks George, yes that was a copy error as in the original it only had the one function but the up…"
Tuesday
George H. Compton IV replied to George H. Compton IV's discussion (TIP) Ning 2.0 responsive fullwidth network at any screen resolution. :O Cellphones to TV's ;)
"You're welcome and thank you for the compliment. It makes me happy knowing you like the end results…"
Tuesday
Strumelia replied to Mary Jane Peterson's discussion getting 500: Unexpected Error site down
"I'm getting a lot of these errors on my Ning 2.0 site today.  Anyone else?
I've filed a new support…"
Tuesday
Steve C replied to George H. Compton IV's discussion (TIP) Ning 2.0 responsive fullwidth network at any screen resolution. :O Cellphones to TV's ;)
"George,
Thank you for all your help with getting my responsive design set up. It was above and beyo…"
Tuesday
More…