|
|
Thread Tools | Display Modes |
|
#1
|
|
|
An Artist at heart
|
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 |
|
|
|
|
#2
|
||
|
"tweak 'til it squeaks"
|
Quote:
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"
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#3
|
||
|
Major grins
|
Quote:
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 |
|
|
|
||
|
#4
|
|
|
An Artist at heart
|
Thanks Guys for the response I will try both these things out and report back if any problems
|
|
|
|
|
#5
|
|
|
An Artist at heart
|
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!
|
|
|
|
|
#6
|
|
|
Big grins
|
That is amazing!!! Would you mind sharing the code for that?
|
|
|
|
|
#7
|
|
|
An Artist at heart
|
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. |
|
|
|
|
#8
|
|
|
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 |
|
|
|
|
#9
|
|
|
An Artist at heart
|
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 |
|
|
|
| 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 | |
|
|