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

Ken Rich replied to Tim Atkinson's discussion My letter to Bernard Desarnauts, SVP & GM, Ning
"There is a Ning to Jamroom forum opened on Jamroom now. It has DOCS, FAQS, plus you can ask questio…"
45 seconds ago
Tim Atkinson replied to Tim Atkinson's discussion Comments on items only show intermittently in Activity Feed
"I filed a ticket, btw...."
4 hours ago
Alexander replied to Traddie's discussion Contingency Planning. What's Yours?
"We are remodelling New Covenant Network outside of Ning.

http://new-covenant.co.uk"
10 hours ago
Strumelia replied to Traddie's discussion Contingency Planning. What's Yours?
"Best of luck with your new site on SocialEngine, Jamie.  It's looking like I'll be doing some site…"
12 hours ago
Tim Atkinson replied to Traddie's discussion Contingency Planning. What's Yours?
"It looks really good, mate - well done. Well, apart from all the Liverpool stuff ;)"
13 hours ago
Melissa B replied to Traddie's discussion Contingency Planning. What's Yours?
"JomSocial"
13 hours ago
Pam Givens replied to Traddie's discussion Contingency Planning. What's Yours?
"Your site looks great.  Good job.  What platform is that on?"
13 hours ago
Jamie Baker replied to Traddie's discussion Contingency Planning. What's Yours?
"I say a sad goodbye to my Ning site today, which completes my migration to socialengine. A shame re…"
15 hours ago
Melissa B replied to Traddie's discussion Contingency Planning. What's Yours?
"Thanks!  Yes, I do!"
16 hours ago
Strumelia replied to Traddie's discussion Contingency Planning. What's Yours?
"Melissa, your new site's looking great!   You have a lot of members.  I bet you feel a sense of rel…"
16 hours ago
Melissa B replied to Traddie's discussion Contingency Planning. What's Yours?
"I just moved my site to a different platform and am very happy.
Old site is still up for the moment…"
17 hours ago
Randy L. Vollett replied to David's discussion Events
"Its still listed under IN WAITING for Upcoming Releases For Ning 3.0. Although I have not been arou…"
17 hours ago
Kos replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"idk if this is at all related by on 10/26 I filed a ticket b/c my Leaderboards on a 2.0 network had…"
21 hours ago
Tim Atkinson replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"Just filed my ticket - #888279, if anyone needs it..."
22 hours ago
Kos replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"ok I decided to test out a page.  It wasn't in Design Studio but rather on the page itself.  Simple…"
22 hours ago
Tim Atkinson replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"I know it's not your code! It's just my only frame of reference for when the CSS changed!"
22 hours ago
SweetPotato replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"my reverted css occurred on a network without my photo code in it.
SP"
22 hours ago
Tim Atkinson replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"Hi Kos & Ramin (and all),
Had a bit of time to investigate my history. Because all I've done recent…"
22 hours ago
Kos replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"One would think if 'Ning' was fiddling in the backroom with their codes, the same would have happen…"
23 hours ago
Kos replied to Ramin Tehrani's discussion Global CSS keeps losing and pages get deleted- how to resolve-urgent help needed
"It's extremely strange.  I would definitely check your Design Studio 'History' and see if using one…"
23 hours ago
More…