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

Fire-Tech replied to Fire-Tech's discussion 3.0 Tip: Status Update Box Tweaks
"Thanks Thiago :)"
2 minutes ago
marshall blake replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"There is not any notification when people comment on status updates in the activity feed?"
1 hour ago
Edie2k2 replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Tight! Very very nice!!! I can't get mine to show ThisIsBully. your link is misspelled but I found…"
1 hour ago
Fire-Tech replied to John Bizley's discussion A few tweaks I made to my activity feed
"Looks great John! Thanks for sharing :)"
1 hour ago
Fire-Tech replied to Fire-Tech's discussion 3.0 Tip: Status Update Box Tweaks
"Looks great John! I threw mine together pretty quick before going to bed, but I'm glad you did the…"
1 hour ago
ceri shaw replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"I was told something similar when I called earlier on BUT it appears to be still live and still com…"
1 hour ago
Fire-Tech replied to Fire-Tech's discussion 3.0 Tip: Status Update Box Tweaks
"Thanks J ;)"
1 hour ago
Fire-Tech replied to Fire-Tech's discussion 3.0 Tip: Status Update Box Tweaks
"Looks good SE! I like the insets better on darker networks too. Have to do the same on my FTS site…"
1 hour ago
Fire-Tech replied to Fire-Tech's discussion 3.0 Tip: Status Update Box Tweaks
"Glad you like it :)"
1 hour ago
John Bizley replied to John Bizley's discussion A few tweaks I made to my activity feed
"Thanks Chris :-)"
1 hour ago
Chris Richards replied to John Bizley's discussion A few tweaks I made to my activity feed
"excellent.. very nice John!"
2 hours ago
John Bizley replied to Fire-Tech's discussion 3.0 Tip: Status Update Box Tweaks
"Here's mine FT
.status-container{ background-color: lightgray;background-image: linear-gradient(sl…"
2 hours ago
JFarrow replied to Fire-Tech's discussion 3.0 Tip: Status Update Box Tweaks
"nice one FT!"
2 hours ago
Asil replied to Asil's discussion Photo Slideshows Fail in NING 2.0
"[Here is the reply I received from NING Support.]
Joanna (Ning Help Center)
Jul 30 01:15 PM
After t…"
3 hours ago
Thisisbully replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"everything on my feeds work fine twitter feeds rss from other sites and its very resonsive it shows…"
3 hours ago
John Bizley replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"The activity feed is cropping posted photos so heads are getting cut of because it's cropping squar…"
3 hours ago
Patrick EMIN is now a member of Ning Powered Events
3 hours ago
Natalie H. replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"Just received this reply in response to my ticket.

"Thank you for getting in touch with our team.…"
3 hours ago
Julie replied to PeruCool's discussion Alternatives to Ning social network
"Anyone go to wordpress/buddypress? I just read back about 10 pages, but I wasn't able to go back fa…"
4 hours ago
Writer Chick {Diane} replied to C.Brickhouse's discussion Be Kind
"Is this a 2.0 or a 3.0?  
Whichever, it looks amazing!! I don't see where it "needs a lot of work"…"
4 hours ago
More…