Photos extend beyond the frame
winnjewett
Registered Users Posts: 329 Major grins
Large photos seem to extend beyond the frame smugmug sets both in my photos (I've added lots of html), and in Baldy's photos (which I believe are bone stock to sm). Here are the links:
http://brilliantphoton.smugmug.com/gallery/467385/1/19044887/Large
http://baldy.smugmug.com/gallery/175301/1/6612807/Large
It's a lot more obvious in my photo, but if you look for the dashed line as an indicator, it is still apparent in baldy's photo.
-winn
http://brilliantphoton.smugmug.com/gallery/467385/1/19044887/Large
http://baldy.smugmug.com/gallery/175301/1/6612807/Large
It's a lot more obvious in my photo, but if you look for the dashed line as an indicator, it is still apparent in baldy's photo.
-winn
0
Comments
http://art.smugmug.com/gallery/82700/1/2874648/Large
Does anyone else have this problem?
-winn
-winn
[php]
#header, #footer, #cobrand_footer, #feeds, #content, #singleImage, #elegant_small, #journal, #traditional, #allthumbs, #slideshow, #press_release {
width: 100%;
padding: 0;
}
#breadcrumb, #albumDescription, #comment_box, #photoTools, #caption, #fileName, #photoBy, #imageInfo, #albumNav, #albumNav_bottom {
width: 97%;
margin: 0 auto;
}
#singleImage #photos {
padding: 0 10px;
}
[/php]
It's not too big of an issue but you're seeing overlap in firefox because the image is 800px on its longest side (which is landscape for this picture thus the spillage). The thing is that firefox isn't like IE. IE will resize the container whether you want it to or not (sometimes messing up your hard work terribly but mostly only when you have 2 or more columns which is not an issue here).
Good news, there is a fix. Simply use the following in your css:
The width:auto; part is for firefox and will stretch your container only if it needs stretching and the _width:750px; is the underscore hack for IE to make it keep doing what it's doing (which is what you want). The only other thing to do is to let firefox know that it can't keep doing the resize thing and that it needs a min-width. I just assumed 750px was what you were going for and left it in there.
http://photos.mikelanestudios.com/
I have some other ideas I will be messing around with today, but feel free to keep the suggestions coming. So far the best solution I have is to create a new template called #singleImage_large and set it's width to be 800px; it is not ideal, but at least it would work. As for original, there is really nothing that could be done, other than opening a popup.
/* update */
I did end up getting Mike's code to work out the way it should, but I had to add 10 extra lines of code to get the other page elements to be 750px width. I still think that making a new ID #singleImage_large would be a far better solution and would make reading the CSS easier.
OR ...
I can ask if the image is larger than 750px, and if so set #singleImage to be the same width as the image. For large images this looks good. For original images, you will more than likely still have to scroll, but oh well - you should not be browsing Original images anyway
Without that code, those elements fill the entire width of the page.
-winn
http://photos.mikelanestudios.com/
Mike, I already have the code working for your request (we heard you way more than once on the issue). It will be in the form of a a body class though:
<body class="journal gallery_793">
or
<body class="singleImage image_1056 keyword_fun">
I think that this is the best way for you to pick out whatever it is you want to style based on; style, gallery page, image, etc.
You could get very specific in the styling too:
body.singleImage.image_1056.gallery_793 {
color: red;
}
This brings up an interesting point and hopefully I'm not being a moron here ... buuuuut, I can't seem to find the <body> tag when I view the source on any of my smugmug pages. Am I missing something?
http://photos.mikelanestudios.com/
-winn
http://photos.mikelanestudios.com/
But ... there is really no need to put anything in that tag anyway, since you can use CSS and Javascript in the other sections.
I'll move the script to the footer and maybe I'll see all the hard work you've done.
http://photos.mikelanestudios.com/
-winn
http://photos.mikelanestudios.com/
<body onload="smHacks();">
The reason for this is that at the time the browser reads the header, items that are refrenced from within the function smhacks() have not yet been loaded.
-winn
onload = smHacks;
http://photos.mikelanestudios.com/