Social Web Directory :: Social Network Directory :: Ning Tips and Ning Support
SEE CRITICAL UPDATE AT BOTTOM OF THIS TIP, BEFORE YOU USE THIS ON NING.
You need to know how to upload an image, and copy/paste the image path (URL) to the example code provided below.
Have you ever wanted to add an image in a location (maybe upper right, bottom right, or lower left) on your Ning Network, that can't be added via Text Boxes - - or within the designated column space?
If you look on JenSocial in the bottom right corner - - you will see an image that appears to be floating outside of the main part of the Ning site. This is what I call a floating image. Although technically it's not floating. It is positioned on the page using the CSS element for a fixed position, with the top and right values for the element: position. The element values: top, right, bottom, left, enable you to instruct the CSS how far from each value you want to place your image. The image on JenSocial usually has a link. You can add a link to your image (clickable image), or not. That's up to you.
Example #1 - Code with Link - Location Bottom Right:
<a target='_blank' href='http://yourlink.com' text='About your link'><img src='yourimagepath.jpg' alt='About your image' style='position: fixed; bottom: 25px; right: 10px;'></a>
Example #2 - Code without Link - Location Top Right:
<img src='yourimagepath.jpg' alt='About your image' style='position: fixed; top: 10px; right: 10px;'>
Look at the code above (example with a link). Find the parameter for position. This is where you want to focus.
The position: fixed means:
An element with fixed position is positioned relative to the browser window. It will not move even if the window is scrolled.
The parameter for bottom: 25px; -- instructs your CSS to place this image 25 pixels from the bottom of your active window.
The parameter for right: 10px; -- instructs your CSS to place this image 10 pixels from the right of your active window.
Notice: Position will be different, for each screen resolution. If you make the browser window smaller (not minimized), just drag the bottom right corner to make it smaller - - you will see how the floating image will be repositioned to the right. With the standard resolution being around 1024 by 768 - - this shouldn't be an issue. And, the higher the resolution, it won't matter at all. Just be aware of this. You do not want to cover up important content on smaller screen resolutions. However, with the fixed position, the image can always be scrolled past, up or down.
Hi Everyone! CRITICAL UPDATE!
It was graciously brought to my attention this morning, here (thank you Ayla!) that the floating images on JenSocial were covering up important platform buttons under: Settings/Profile/Change Password
I had no clue this was happening. I have tried to figure out why, and how to fix this. It appears that Ning is using a frame within the change password page, probably calling a secure server location. By using the frame, it is positioning floating or "fixed position" images within the frame, as if the frame is the entire window. This is NOT a GOOD user experience to say the least. PLEASE MAKE SURE you are not doing this on your site. I have tried to assign classes to my floating images, and remove the images from that page only, with CSS. For some reason, it will not work. It could be because the CSS can't be invoked on that special page. :(
On JenSocial, I removed the bottom right floating cloud (image below). I did not remove the VIP button because it's not preventing an action. But, it's unattractive on this special password page, and unnecessary.
Please let me know if you see this happening anywhere else on JenSocial. And, I apologize for the inconvenience.
Thank you Ayla for your gracious way of reporting this serious issue "a little storm", LOL
Got mine to working! YAY! (I had one of our fan artists create the image for me because I suck at that stuff.) I put mine at the top of my site because I didn't want it completely hidden by the chat box when it opens.
Have a look:
Looks great! Thanks for the feedback, and happy you were able to utilize the tip.
Best to you,
Hi, Jen. I added two images in my network, but I can´t see the little text that is shown when the cursor is over it.
Change the word "text" to "title", no quotes.
thank you so much, dear Jen ♥
I added the code and uploaded my image, but it doesn't float completely on top of the other modules on the page. Sometimes it's in front, sometimes it's in back. As I scroll through the page, it changes (primarily on screens with lower resolution sizes). Any thoughts on how I can get the image to float on top of everything else? My site is http://songwriterspace.com.
If I'm understanding you correctly, try adding this to the beginning of the img src tag: