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

Ambroise replied to The Ning Team's discussion Update on May Service Disruptions
"From my side, the problem is solved :-)"
2 hours ago
Shelli Poole replied to The Ning Team's discussion Update on May Service Disruptions
"The archiver tool doesn't work for my 2.0 either. Service tickets produced what I have to presume a…"
5 hours ago
Vincent Wright replied to The Ning Team's discussion Update on May Service Disruptions
"Funny, funny, FUNNY Kos! lol :-) "
5 hours ago
Kos replied to The Ning Team's discussion Update on May Service Disruptions
"We need to flood them with service requests for an archive tool for 3.0.  I mean a new ticket, each…"
5 hours ago
Kos replied to Natasha Dyer's discussion Adding a search bar
"No, Ning never developed a search bar once Mode took them over.  I'm using this one. It's not fancy…"
5 hours ago
Kos replied to The Ning Team's discussion Update on May Service Disruptions
"You're assuming people keep their LinkedIn profile up to date. *lol*  I know many who do not."
5 hours ago
Vincent Wright replied to The Ning Team's discussion Update on May Service Disruptions
"INTERESTING!  If we go to Ning on Linkedin, we see Marc Andreesen's Linkedin profile. (https://www.…"
6 hours ago
Kos replied to The Ning Team's discussion Update on May Service Disruptions
"-----------and it's Friday afternoon.  You know what that means.  Another weekend of broken sites o…"
7 hours ago
Steve C replied to The Ning Team's discussion Update on May Service Disruptions
"Live.autographmagazine.com is working properly again."
11 hours ago
Jen replied to The Ning Team's discussion Update on May Service Disruptions
"The only good thing from this whole embarrassing and appalling debacle - - at the least the brillia…"
11 hours ago
⚡JFarrow⌁ replied to The Ning Team's discussion Update on May Service Disruptions
"I wholeheartedly agree"
11 hours ago
⚡JFarrow⌁ replied to The Ning Team's discussion Update on May Service Disruptions
"No sidebars loading on my network.."
11 hours ago
⚡JFarrow⌁ replied to The Ning Team's discussion Update on May Service Disruptions
"I wholeheartedly agree"
12 hours ago
Rod Schwartz replied to The Ning Team's discussion Update on May Service Disruptions
"NING Management:
Your lack of timely and transparent response to the serious problems that have aff…"
12 hours ago
Just Asking replied to Just Asking's discussion Here's a fun new glitch... random IP addresses seem to be blocked. Your network, too?
"It went from bad to worse on my end. Some members are still locked out, and have been for a month n…"
12 hours ago
Vincent Wright replied to The Ning Team's discussion Update on May Service Disruptions
"All the above being said and all the right-on-points being made by dedicated Ning users, I must add…"
12 hours ago
Sharon replied to Natasha Dyer's discussion Adding a search bar
"Hi Natasha,
Have you got any response yet? I am also interested in the search bar on our the ning w…"
13 hours ago
Jonas replied to Just Asking's discussion Here's a fun new glitch... random IP addresses seem to be blocked. Your network, too?
"I access Ning from two locations: home and an office.
In the office ping worked for varying degrees…"
13 hours ago
Kyle replied to The Ning Team's discussion Update on May Service Disruptions
"I have not modified my 2.0 site in years. I do have custom CSS, but it's been working fine since I…"
13 hours ago
Steve C replied to The Ning Team's discussion Update on May Service Disruptions
"They say they are aware and working on it."
13 hours ago
More…