I am currently using Twitter Bootstrap for a new project. The main part of the project is a gallery of thumbnails, exactly the same as in their examples (here: http://twitter.github.com/bootstrap/components.html#thumbnails ).
The problem is that I am currently css-transforming (rotating, mostly) the picture, if necessary, in accordance with my EXIF orientation data. When I apply the transform (using -webkit-transform at the moment, when I test in Chrome), img , its parent element remains the same, and the image “overflows” its container.
Using Chrome, you can check this behavior using the example of the thumbnail gallery that I linked to earlier and check one of the placeholder images and add the style="-webkit-transform: rotate(90deg) property style="-webkit-transform: rotate(90deg) to the img tag. The image overflows the li container element and breaks up the layout.
Is there a way to solve this problem and have bootloader with the processed CSS image as if it were originally that way? I thought about manually setting the height and width of the img tag and their parents will be configurable, but I cannot know what size will be displayed on the server side before they are actually displayed, so it seems to exclude this approach.
Oh, and by the way, "I know that I can resort to rotation on the server side, I know that it is not difficult, I would very much prefer to do it in the browser, if at all possible."
Any ideas?
Thanks!
EDIT: Jaap suggested I rotate the entire container, which would work fine, if not for the fact that I have text nodes in miniature li s. Rotating the container will cause the text to be rotated.
malvim
source share