journal entry format problem (II)
oxy8384
Registered Users Posts: 389 Major grins
Can someone tell me why the caption on a journal entry is offset below the top of the image? I have set margin, border, and padding on '.caption' class to zero without effect. If you look here
http://truemomentsphotography.smugmug.com/gallery/2938050
I have added 1px borders around the outermost div elements inside my image captions and you can see the top edge is noticably below the top edge of the journal_entry photos. I could use the extra room...
TIA,
Bill
http://truemomentsphotography.smugmug.com/gallery/2938050
I have added 1px borders around the outermost div elements inside my image captions and you can see the top edge is noticably below the top edge of the journal_entry photos. I could use the extra room...
TIA,
Bill
0
Comments
Remove your .tmp_cap_container and apply that styling to .journal_entry
I played around and ended up with the following.
Hope that helps
Andrew
.journal_entry {
position: relative;
padding: 10px 10px 10px 10px;
border-style:solid;
border-color:#0ff;
border-width: 1px 1px;
}
.tmp_journal_cap {
margin-top: -20px;
font-size: 12pt;
font-weight: normal;
border-style:solid;
border-color:#f0f;
border-width: 1px 1px;
}
.tmp_journal_left {
text-align: right;
}
.tmp_journal_right {
text-align: left;
}
.tmp_caption_center {
text-align:center;
}
.photo left {
padding-right: 15px;
}
.photo right {
padding-right: 15px;
}
.clearer {
clear: both;
overflow: hidden;
height: 1px;
width: 1px;
}
It looks like the magic bullet is the 'margin-top: -20px;' . I was trying to avoid such a specific fix in case the journal gets redefined in the future and also because my next project is to vertically center my captions alongside my images. Using your solution means my javascript will have to knw about my CSS and that's just ugly. I'll use that as a last resort, but I'd rather be able to eliminate the extra space at the journal_entry or caption level.
Thanks,
Bill
http://photos.mikelanestudios.com/
That works!!
bow
I am sooooooo confused by that! So now explain why '.journal_entry .caption {padding: 0;}' didn't work. This makes no sense to me.
But thank you VERY much, anyway!
Bill
www.ivarborst.nl & smugmug
but only if you can answer my question (above)!
Thanks, all!
Bill
www.ivarborst.nl & smugmug
More about specificity here.
http://photos.mikelanestudios.com/
BAM! (Emeril reference to kicking it up a notch)
Doh! I forgot the default CSS, but wouldn't have expected it to be that specific, anyway.
Thanks,
Bill
where can I get a look at these default CSS files? If I save a page and all dependent files to my PC, the CSS appears all garbled (encrypted?). Or am I looking at a Linux file on a Windows machine..?
I would like to see what's being done on my behalf so I don't waste anyone's time on this stuff in the future..
Thanks,
Bill
Even make changes to your page in real time and watch what happens. It
only works on the page that's loading in memory so save any changes.
My Website index | My Blog