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

Ron left a comment for Randy L. Vollett
"Hey Randy, I saw your banner problem post and it would help if you can send me more details about y…"
7 hours ago
George H. Compton IV replied to JFarrow's discussion Add Some POWr to Your Ning Community
"Pretty cool. JF, I'm going to have to try this out. Thank you for sharing."
8 hours ago
George H. Compton IV replied to George H. Compton IV's discussion Tip any network.. Graphical loader interface. Hide your ugly bounce rate.
"LOL Dave, I don't know about that but thank you :-)"
8 hours ago
Fire-Tech replied to Luke Jones's discussion Did anyone even want Ning 3.0? ,
"+1"
9 hours ago
Fire-Tech replied to Luke Jones's discussion Did anyone even want Ning 3.0? ,
"+1"
9 hours ago
SweetPotato replied to Mary Jane Peterson's discussion New Site with 3.0
"The idea of a community for that niche and therefore potential customers is still a great one. Just…"
11 hours ago
JFarrow replied to Luke Jones's discussion Did anyone even want Ning 3.0? ,
"well said"
12 hours ago
JFarrow replied to Mary Jane Peterson's discussion New Site with 3.0
"should be under 12 characters"
12 hours ago
JFarrow replied to JFarrow's discussion Add Some POWr to Your Ning Community
"Update:  POWr has added an official tutorial on how to best use POWr plugins for Ning websites.  I…"
14 hours ago
Mary Jane Peterson replied to Mary Jane Peterson's discussion New Site with 3.0
"Thank you , for all your views ,  I am now thinking of closing this site down ,  "
15 hours ago
Strumelia replied to Mary Jane Peterson's discussion New Site with 3.0
"They probably do still freak out about art photography and nipples and such, and yet they don't car…"
15 hours ago
Eve Bellator replied to Mary Jane Peterson's discussion New Site with 3.0
"Great point! "
15 hours ago
Kos replied to Lakhassia's discussion How to upgrade to 3.0 to 2.0
"Contact ning and come back here and let us know if they do it.  It will be interesting to watch the…"
19 hours ago
Strumelia replied to Luke Jones's discussion Cometchat are going to be the ones to save Ning
"Thank you.  I got the footer code mystery solved myself because I asked SoaringEagle on here- he mo…"
20 hours ago
soaringeagle replied to soaringeagle's discussion ning vs jamroom
"sure well depends on how much ya need  done"
20 hours ago
Kos replied to Trish White's discussion TEXT BOX NOT WORKING AGAIN
"Design Studio - Custom CSS area
None in there?"
20 hours ago
Caron Jane Lyon / Katie Reve left a comment for Ron
"Hi Ron, Can you give me a summary of where Ning is at? Re 2.0 3.0? I have several networks all crea…"
20 hours ago
fabiola replied to soaringeagle's discussion ning vs jamroom
"Hello soaringeagle 
I appreciate your valuable information.  Few weeks ago I found out about the "p…"
23 hours ago
Ron replied to Luke Jones's discussion Cometchat are going to be the ones to save Ning
"yes, just as I thought. thanks."
yesterday
Anant Garg replied to Luke Jones's discussion Cometchat are going to be the ones to save Ning
"Thank you for your feedback. Yes, we are working on making our website clearer. 
Regarding the temp…"
yesterday
More…