Social Web Directory :: Social Network Directory :: Ning Tips and Ning Support
This tip will show you how to make your Photos look like a Polaroid, with pure CSS. The effect is clean and subtle. If you want yours to stand out more, change the border color from #dadada to a darker color.
I've written the code for a Ning site, but will also show others how to apply to any image.
Instructions:
CSS:
/* Sweet Polaroid Photo Effect Ning Photo Page */
div#xg.xg_widget_photo div#photo_page_body a.next_photo_link img {
max-width:95%;
border: 1px solid #dadada; /* border color */
padding: 15px 15px 70px 15px;
margin-bottom: 15px; /* margin below image */
/* Next lines are a gradient color to give the Polaroid depth. You can remove these lines if you want all white. */
/* Opera 11.10+ */
background: -o-linear-gradient(top, rgba(255,255,255,1), rgba(246,245,245,1));
/* Firefox 3.6+ */
background: -moz-linear-gradient(top, rgba(255,255,255,1), rgba(246,245,245,1));
/* Chrome 7+ & Safari 5.03+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(255,255,255,1)), color-stop(1, rgba(246,245,245,1)));
/* IE5.5 - IE7 */
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#FFFFFFFF,EndColorStr=#FFF6F5F5);
/* IE8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#FFFFFFFF,EndColorStr=#FFF6F5F5)"
}
Enjoy!
Jen
Tags:
hi JenSocial
This is very nice
Can you use video?
Hi Abdullah,
Nice to hear you like it. I think there are too many variables on how videos are uploaded, to add effect around the video frame. And it could be, I'm just not capturing the area I want. What I found is a selector that will add the Polaroid effect around video DIV (video, description below, and share button). It's actually quite nice looking.
Try this for Video DIV:
/* Sweet Polaroid Photo Effect Ning Video */
.xg_widget_video_video_show div.vid_container {
max-width:95%;
border: 1px solid #dadada; /* border color */
padding: 15px 15px 70px 15px;
margin-bottom: 15px; /* margin below image */
/* Next lines are a gradient color to give the Polaroid depth. You can remove these lines if you want all white. */
/* Opera 11.10+ */
background: -o-linear-gradient(top, rgba(255,255,255,1), rgba(246,245,245,1));
/* Firefox 3.6+ */
background: -moz-linear-gradient(top, rgba(255,255,255,1), rgba(246,245,245,1));
/* Chrome 7+ & Safari 5.03+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(255,255,255,1)), color-stop(1, rgba(246,245,245,1)));
/* IE5.5 - IE7 */
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#FFFFFFFF,EndColorStr=#FFF6F5F5);
/* IE8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#FFFFFFFF,EndColorStr=#FFF6F5F5)"
}
Best Regards,
Jen
thank
THIS IS AMAZING!!!!
Welcome to
JenSocial: Social Web Directory and Ning Tips
Posted by JenSocial on May 7, 2018 at 8:35pm 9 Comments 1 Favorite
Posted by JenSocial on January 6, 2017 at 4:00pm 10 Comments 1 Favorite
Posted by JenSocial on October 22, 2016 at 1:05am 0 Comments 0 Favorites
Posted by JenSocial on September 17, 2016 at 12:00am 26 Comments 1 Favorite
Posted by JenSocial on August 31, 2016 at 3:30pm 13 Comments 0 Favorites
Ning 3.0 Tip - Add Buttons/Links Below Status Update (Quick Links to Add Photos, Posts, Discussions)
Started by Ning.spruz.com in Ning 3.0 Feb 19. 0 Replies 0 Favorites
Started by Evelina in Ning 3.0 Aug 30, 2023. 0 Replies 0 Favorites
Started by Evelina in Ning 3.0 Aug 27, 2023. 0 Replies 0 Favorites
© 2024 Created by JenSocial. Powered by
© Copyright JenSocial.