• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Custom CSS question

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #130 (Hot or Cold), Memol..

The next Dgrin Challenge DSS #131 (Music) is open for entries through June 24th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Aug-11-2012, 09:46 AM
#1
ko04 is offline ko04 OP
An Artist at heart
ko04's Avatar
Custom CSS question
Hey Everyone,
So I started a testimonial page and found this customized the CSS around the photo's but I'm having a little trouble with it. First thing is in the second testimonial her head is getting cropped and then also in both of them the photo isn't being covered by the white border I created with CSS. I don't know enough about web design to figure this one out so I am coming here for anyone's help on this. Here is the link to the page it isn't live yet until I fix the problems and get my testimonials http://www.k-ophotography.com/Other/...4672246_R3N8b3
__________________
KO Photography
http://www.k-ophotography.com/
Old Aug-11-2012, 10:24 AM
#2
Allen is offline Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by ko04 View Post
Hey Everyone,
So I started a testimonial page and found this customized the CSS around the photo's but I'm having a little trouble with it. First thing is in the second testimonial her head is getting cropped and then also in both of them the photo isn't being covered by the white border I created with CSS. I don't know enough about web design to figure this one out so I am coming here for anyone's help on this. Here is the link to the page it isn't live yet until I fix the problems and get my testimonials http://www.k-ophotography.com/Other/...4672246_R3N8b3
Try this, change the Th's to 200x200. This will make the longest side 200px and keep the ratio.
Or you are using square thumbs and would have to crop each thumb and slide the crop up.
Code:
  <img src="http://www.k-ophotography.com/Clients/Ravelle-Wellock/i-gjzWM84/4/200x200/IMG0542-200x200.jpg" height="150" width="150">
</div>     <!-- closes myPhoto div -->

  <img src="http://www.k-ophotography.com/Clients/Duckyrickman/i-vt8ppFD/0/200x200/KOPhotography4-200x200.jpg" height="150" width="150">
</div>     <!-- closes myPhoto div -->
I think keeping the original ratio looks best.
Old Aug-11-2012, 10:28 AM
#3
J Allen is offline J Allen
Major grins
J Allen's Avatar
Quote:
Originally Posted by ko04 View Post
Hey Everyone,
So I started a testimonial page and found this customized the CSS around the photo's but I'm having a little trouble with it. First thing is in the second testimonial her head is getting cropped and then also in both of them the photo isn't being covered by the white border I created with CSS. I don't know enough about web design to figure this one out so I am coming here for anyone's help on this. Here is the link to the page it isn't live yet until I fix the problems and get my testimonials http://www.k-ophotography.com/Other/...4672246_R3N8b3

Try adding a height dimension to the rule:
Code:
.myPhoto{border: 5px solid;
    float:right;
    -moz-box-shadow:0 0 5px #333;
    -webkit-box-shadow:0 0 5px #333;
    box-shadow:0 0 5px #333;
    -moz-transform:rotate(-5deg);
    -o-transform:rotate(-5deg);
    -webkit-transform:rotate(-5deg);
    transform:rotate(-5deg);
    margin:0 20px 0 0;height:150px}

.myPhoto2{border: 5px solid;
    float:left;
    -moz-box-shadow:0 0 5px #333;
    -webkit-box-shadow:0 0 5px #333;
    box-shadow:0 0 5px #333;
    -moz-transform:rotate(-5deg);
    -o-transform:rotate(-5deg);
    -webkit-transform:rotate(-5deg);
    transform:rotate(-5deg);
    margin:0 20px 0 0;height:150px;}

And for the image getting cropped, your using the "thumbnail" link of the image....you might want to instead try a defined custom size like this:

111x175


Learn about custom sizes here


...or just crop an original copy of the image and link that...there's a cropping tool in the gallery tools menu
__________________
-Joe Allen
My Smugmug Site
Old Aug-11-2012, 02:05 PM
#4
ko04 is offline ko04 OP
An Artist at heart
ko04's Avatar
Thanks Guys for the response I will try both these things out and report back if any problems
__________________
KO Photography
http://www.k-ophotography.com/
Old Aug-11-2012, 02:26 PM
#5
ko04 is offline ko04 OP
An Artist at heart
ko04's Avatar
Quote:
Originally Posted by ko04 View Post
Thanks Guys for the response I will try both these things out and report back if any problems
Updated: Thanks again tried what both of you suggested it worked great. I think adding that height ratio in my CSS is something it needed because I needed to match it with the height of the photo itself. Thanks again!
__________________
KO Photography
http://www.k-ophotography.com/
Old Aug-16-2012, 01:26 PM
#6
Kamico is offline Kamico
Big grins
That is amazing!!! Would you mind sharing the code for that?
Old Aug-16-2012, 05:04 PM
#7
ko04 is offline ko04 OP
An Artist at heart
ko04's Avatar
Quote:
Originally Posted by Kamico View Post
That is amazing!!! Would you mind sharing the code for that?
Ofcourse not thats what we are all here for right to help each other out my CSS Code is as follows

.myText h2 {
color: #CCC;
font: 26px Georgia, serif;
text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.25);
color: #CCC;
font: 26px Georgia, serif;}
.myPhoto{border: 5px solid;
float:right;
-moz-box-shadow:0 0 5px #333;
-webkit-box-shadow:0 0 5px #333;
box-shadow:0 0 5px #333;
-moz-transform:rotate(-5deg);
-o-transform:rotate(-5deg);
-webkit-transform:rotate(-5deg);
transform:rotate(-5deg);
margin:0 20px 0 0; height:150px;}

.myPhoto2{border: 5px solid;
float:left;
-moz-box-shadow:0 0 5px #333;
-webkit-box-shadow:0 0 5px #333;
box-shadow:0 0 5px #333;
-moz-transform:rotate(-5deg);
-o-transform:rotate(-5deg);
-webkit-transform:rotate(-5deg);
transform:rotate(-5deg);
margin:0 20px 0 0; height:150px;}

And my Html looks like this

<html>
<div class="myTitle">
</div> <!-- closes myTitle div -->
<div class="myPhoto">
<img src="http://www.k-ophotography.com/Clients/Ravelle-Wellock/i-gjzWM84/4/100x150/IMG0542-100x150.jpg" />
</div> <!-- closes myPhoto div -->
<div class="myText">
<h2>Ravelle Wellock</h2>
<p>"Keith is professional, friendly, polite, creative, and a pleasure to be around. I refer him to anyone I know who might be interested in hiring him. It is becoming more rare to find a photographer like him, and that makes Keith a valued treasure. Anyone who works with him will know, he puts his EVERYTHING into his work."</p>
</div> <!-- closes myText div -->
<div style="clear: both;"></div>
</html>

<html>
<div class="myTitle">
</div> <!-- closes myTitle div -->
<div class="myPhoto2">
<img src="http://www.k-ophotography.com/Clients/Duckyrickman/i-vt8ppFD/0/100x150/KOPhotography4-100x150.jpg" />
</div> <!-- closes myPhoto div -->
<div class="myText">
<h2> Ducky Rickman</h2>
<p> "A very fun laid back shoot with just the right amount of professionalism."</p>
</div> <!-- closes myText div -->
<div style="clear: both;"></div>
</html>

I found it to be a little easier to manage the CSS of each photo to make two sperate div class for each testimonial that way I can tweak the CSS to go left and right of each other. I am at all means not a web designer so there might be an easier way to do this but this is what worked for me.
__________________
KO Photography
http://www.k-ophotography.com/
Old Aug-16-2012, 05:33 PM
#8
Kamico is offline Kamico
Big grins
Thank You! I am having a problem with getting the white border for the picture frames. also The text isnt coming out as cool as yours. Here is a link so you can take a look if you dont mind.

http://www.infinitephotographics.com...2521180_J48pbC

Last edited by Kamico; Aug-16-2012 at 06:48 PM. Reason: different understanding of answer
Old Aug-17-2012, 04:57 AM
#9
ko04 is offline ko04 OP
An Artist at heart
ko04's Avatar
I didn't see any of this part in your code ".myText h2 {
color: #CCC;
font: 26px Georgia, serif;
text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.25);
color: #CCC;
font: 26px Georgia, serif;
}"

The main part I'm looking for is the text-shadow thats what making the depth that your probably liking. As for the white border if you try this but before you try it make sure you email a copy because I don't know code well enough to know if this will work so try this

#albumDescription .ReviewPhoto1{
color: white;}

Though I could be totally wrong on that and maybe someone can step in and help if I am. In my opinion I don't think you should be having a white border there unless your changing the background color of that box but just some food for thought. Anyways hope that helps post back and let me know
__________________
KO Photography
http://www.k-ophotography.com/
Tell The World!  
Similar Threads Thread Starter Forum Replies Last Post
Custom Header Question LJ2b2c SmugMug Customization 1 Aug-15-2011 01:22 PM
Simple CSS Question guttermanster SmugMug Customization 2 Jul-09-2011 08:28 PM
Advanced Sitewide Custom Header and CSS lfphoto SmugMug Customization 2 Apr-10-2011 07:17 PM
Custom Hostname Question MAHAROGERS SmugMug Pro Sales Support 1 Aug-12-2007 09:52 PM
Easy Question on CSS heatherdiane SmugMug Customization 6 Oct-13-2005 11:45 AM


Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump