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

Antonio Ancelmo Matos Santos replied to Ning's discussion Introducing Activity Feed Improvements, Including Member Status Updates
"And who told you that I spoke to you? you are happy with the whole situation on Ning? good for you!…"
6 hours ago
Kos replied to John Bizley's discussion How To Add Some Design To Your: Pages Categories Nav, Groups Nav & Groups Pages Nav
"Sounds like a plan.  You know me.  I'll be lingering like an annoying cold.  LOL"
8 hours ago
Garfield Archivist replied to George H. Compton IV's discussion Ning coding and styling Tool "GeoPlugin" v2.00.003
"Awesome in every sense of the word."
11 hours ago
George H. Compton IV replied to George H. Compton IV's discussion Ning coding and styling Tool "GeoPlugin" v2.00.003
"Update 8/30/15, now you can also easily add HTML to the head or the body of your network.. TJ thank…"
13 hours ago
John Bizley replied to John Bizley's discussion How To Add Some Design To Your: Pages Categories Nav, Groups Nav & Groups Pages Nav
"Thanks Kos, will do but may hold off a little posting onto creators and just add them to my site as…"
19 hours ago
Kos replied to John Bizley's discussion All New Photos Page Viewer Layout Code
"Yes, much more clear"
21 hours ago
Kos replied to John Bizley's discussion How To Add Some Design To Your: Pages Categories Nav, Groups Nav & Groups Pages Nav
"Keep 'em coming John.  We appreciate it!"
21 hours ago
John Bizley replied to John Bizley's discussion How To Add A Little Separation In Activity Feed When Someone Comments On A Post
"Hi Anam, yes it's an all new site and profile for me here on creators. Joining will be available ve…"
23 hours ago
Anam replied to John Bizley's discussion How To Add A Little Separation In Activity Feed When Someone Comments On A Post
"Is this a different site to one I joined a while back where you posted tips? I checked out your new…"
yesterday
John Bizley replied to John Bizley's discussion All New Photos Page Viewer Layout Code
"Just made that change, I did split it up in two parts but this should help with any confusion now :…"
yesterday
Kos replied to John Bizley's discussion All New Photos Page Viewer Layout Code
"At least I'm not the only one that got that wrong.  You may want to BOLD OUT and underline that are…"
yesterday
John Bizley replied to John Bizley's discussion How To Add A Little Separation In Activity Feed When Someone Comments On A Post
"Thanks for your kind words Anastasia, there are many others on here who provide excellent tips also…"
yesterday
John Bizley replied to John Bizley's discussion All New Photos Page Viewer Layout Code
"Thanks Garfield :-)"
yesterday
John Bizley replied to John Bizley's discussion All New Photos Page Viewer Layout Code
"Thanks Anastasia
That might be because you may have added the first part of code to your css and no…"
yesterday
Anastasia Grey replied to John Bizley's discussion All New Photos Page Viewer Layout Code
"Thanks John! That's Amazing for my Proyect. Just i wonder why i can't see " Feature Botton" Close…"
yesterday
Anastasia Grey replied to John Bizley's discussion How To Add A Little Separation In Activity Feed When Someone Comments On A Post
"Wow John! that's Great!  we finally have the best tips for ning 3 thanks to You!"
yesterday
Garfield Archivist replied to John Bizley's discussion All New Photos Page Viewer Layout Code
"I can concur that as someone who spends quite some time on their site that 500 errors have been ver…"
yesterday
Kos replied to John Bizley's discussion NEW TIP: Tidy Up Title Links In Activity When Adding Lot's Of Discussions In Succesion
"Sharp; well done John"
yesterday
Garfield Archivist replied to John Bizley's discussion All New Photos Page Viewer Layout Code
"Beautiful display of photos"
yesterday
John Bizley replied to John Bizley's discussion How To Make Your Photos List Even On Both Side ( useful for those with full page width themes )
"I do have a few of these as when adding group modules they do the same thing in big and smaller col…"
Saturday
More…