• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization CSS padding 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 Sep-07-2005, 09:35 AM
#1
asd is offline asd OP
Call me Andrew
asd's Avatar
CSS padding question
I've been playing around with my css and have given the caption areas a background-color. To keep the text from sitting on the edge of that now-colored div I added a padding-left statement to push it over a little, and it works fine in my galleries until I click the Large link, when it goes away.

Links: Gallery's first image (padding on the left of the caption - the 'W' in welcome is over a tad) and First image, Large single-image view (no padding on the left of the caption - the 'W' in welcome is flush with the left of the box)

The CSS I have:
Code:
/* My CSS */
#userName, #userHome { display: none; }

#my_header { 
   margin: 0px auto;
   text-align:center; }

#caption_bottom {
   position: relative;
   top: -2px;
   padding-left: 3px;
   background-color: #374f8b;
}

.title {
/*   color: #374f8b;
   color: #a58de9;
color:#4d7c3f;*/
color: #c5a56c;
}

.imgBorderOn {border: solid 1px #c5a56c;}

#thumbnails .imgBorderOn {position: relative;top: 1px;left: 1px;}
#thumbnails .imgBorder {border-color: transparent;
_border-color: black; position: relative;top: 0px;left: 0px;}
Any ideas why it's doing this? What's the difference between these two views? I looked at the page source and both look the same where that caption is concerned...I must have missed something.

Any help appreciated. :)
Old Sep-07-2005, 10:26 AM
#2
Mike Lane is offline Mike Lane
I � Unicode
Mike Lane's Avatar
Can anyone handle this one? I'm blocked from work.
__________________
Y'all don't want to hear me, you just want to dance.

http://photos.mikelanestudios.com/
Old Sep-07-2005, 10:48 AM
#3
asd is offline asd OP
Call me Andrew
asd's Avatar
Quote:
Originally Posted by Mike Lane
Can anyone handle this one? I'm blocked from work.
This has like minimal urgency..it's just one of those little things. I appreciate your trying to look though!
Old Sep-07-2005, 11:05 AM
#4
{JT} is offline {JT}
Code Monkey
{JT}'s Avatar
Single image view has undergone a bit of an overhaul with CSS so we can center the image on the page and not stretch our everything else. As a result, you need to specify the singleImage view as well:

#caption_bottom, #singleImage #caption_bottom {
padding-left: 3px;
}


Quote:
Originally Posted by asd
I've been playing around with my css and have given the caption areas a background-color. To keep the text from sitting on the edge of that now-colored div I added a padding-left statement to push it over a little, and it works fine in my galleries until I click the Large link, when it goes away.

Links: Gallery's first image (padding on the left of the caption - the 'W' in welcome is over a tad) and First image, Large single-image view (no padding on the left of the caption - the 'W' in welcome is flush with the left of the box)

The CSS I have:
Code:
/* My CSS */
#userName, #userHome { display: none; }

#my_header { 
   margin: 0px auto;
   text-align:center; }

#caption_bottom {
   position: relative;
   top: -2px;
   padding-left: 3px;
   background-color: #374f8b;
}

.title {
/*   color: #374f8b;
   color: #a58de9;
color:#4d7c3f;*/
color: #c5a56c;
}

.imgBorderOn {border: solid 1px #c5a56c;}

#thumbnails .imgBorderOn {position: relative;top: 1px;left: 1px;}
#thumbnails .imgBorder {border-color: transparent;
_border-color: black; position: relative;top: 0px;left: 0px;}
Any ideas why it's doing this? What's the difference between these two views? I looked at the page source and both look the same where that caption is concerned...I must have missed something.

Any help appreciated. :)
Old Sep-07-2005, 05:43 PM
#5
asd is offline asd OP
Call me Andrew
asd's Avatar
Quote:
Originally Posted by {JT}
Single image view has undergone a bit of an overhaul with CSS so we can center the image on the page and not stretch our everything else. As a result, you need to specify the singleImage view as well:

#caption_bottom, #singleImage #caption_bottom {
padding-left: 3px;
}
That did it - thanks JT!
Tell The World!  

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