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.

Thanks

PS: 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.

Tags: image, module, module background image, modules

Views: 919

Attachments:

Reply to This

Replies to This Discussion

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?
That must be old code, sorry, try this one.
It's part of what I'm using now.

/* Main Background */
body {
background-color: transparent!important;
background-image:url(add picture here);
background-position:center 0px;
background-attachment:fixed;
background-repeat: repeat;
font-family: Georgia;
}
Yeahhhh...That IS what i was looking for...


Thanks again...

RSS

Latest Activity

Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Thanks!"
34 minutes ago
Dustin Craig replied to John Bizley's discussion 'Show Your Ning 3.0 Sites'
"Let me send you a friend request so I can message you rather than take this thread more off-topic."
37 minutes ago
Paul Corona replied to Suzie Nielsen's discussion 'Watching Cultivating videos- have questions!'
"So many folks were asking the same questions that I thought actually showing them the basics of the…"
2 hours ago
Chris replied to JFarrow's discussion 'Ning Emails Going to Spam?'
"Nope, had all the answers: "it's not a bug", "it is a bug and has been…"
3 hours ago
Larry Matthews replied to Larry Matthews's discussion 'Photos'
"www.dismyhood.com I need to enlarge images on mouseover, on the activity feeds. There is a feed for…"
3 hours ago
Fabio replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"F A N T A S T I C !!!!! well done guys"
3 hours ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Hi Allison, I have a Client who needs the Search feature. Any updates? I don't see any Search…"
4 hours ago

NC for Hire
SweetPotato replied to Phil McCluskey's discussion 'Site Manager Updates for Ning 3.0 Networks'
"not consistently for all browsers, think SE tried it with mixed results. SP"
4 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service