Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Doesn't work on IE6.
Some reading material:
http://www.hedgerwow.com/360/dhtml/css-inline-block-layout.php
http://www.hedgerwow.com/360/dhtml/css-display-inline.html
http://robots.thoughtbot.com/post/159806965/how-i-learned-to-stop-floati...
http://blog.mozilla.com/webdev/2009/02/20/cross-browser-inline-block/
@sun: you mentioned you might have time to tackle this?
Comment | File | Size | Author |
---|---|---|---|
#19 | 575790.image_.gallery-cross-browser-css.patch | 686 bytes | joachim |
#11 | gallery-ie8.png | 119.35 KB | mokko |
#11 | gallery-ff.png | 143.57 KB | mokko |
#5 | 575790.image_.hollyhack-gallery-items.patch | 550 bytes | joachim |
Comments
Comment #1
Dan Silver CreditAttribution: Dan Silver commentedthanks for making this. subscribing
Comment #2
joachim CreditAttribution: joachim commentedThe above was suggested in the discussion about getting this style into Views: #377574: Fluid grid style plugin.
Can someone with IE6 or 7 test please?
Comment #3
jaxtheking CreditAttribution: jaxtheking commentedWeird enough, in IE7 all it took to make it work was:
li.views-fluid-grid-item {
display: inline;
}
It did not work with inline-block. Go figure...
Comment #4
joachim CreditAttribution: joachim commentedYes; inline-block doesn't work on IE 7 or lower, hence the Holly hack to set the items to inline instead.
Comment #5
joachim CreditAttribution: joachim commentedHere's a patch to try.
Comment #6
eL CreditAttribution: eL commentedTried the patch. Doesnt work for me :(
http://www.zastavimcas.cz/galerie/ratolesti
Comment #7
joachim CreditAttribution: joachim commentedI don't have access to any version of IE to test, so any work on this will have to come from users.
Comment #8
eL CreditAttribution: eL commentedMaybe usefull for some testers: http://www.my-debugbar.com/wiki/IETester/HomePage
All versions of IE in one window.
Comment #9
eL CreditAttribution: eL commentedHere is my solution and it works. For IE6 is height needed, so it must be hard coded and sometimes (when pictures are vertical oriented) it is not nice, but better than before.
replace in image.css
Comment #10
joachim CreditAttribution: joachim commentedSetting to Needs review.
Could other people who use this excuse for a web browser (:p) test please?
Comment #11
mokko CreditAttribution: mokko commentedI am using 6.x-1.0-beta5.
I attach screenshots from IE8 and FF same page.
#9 does not work for me. It messes up FF and doesn't help much with IE8
Comment #12
joachim CreditAttribution: joachim commentedComment #13
mokko CreditAttribution: mokko commentedActually, now I am not sure anymore I entered the asterisk correctly when making the screenshots. It still doesn't work for my IE8. What about this though? That seems to work
.view .image-gallery-nodes ul li {
display:inline-block;
*display:inline;
/*
There is no pretty way to get thumbnail sizes here.
This will need to be overridden for sites that set a different size.
*/
zoom: 1;
list-style-type: none;
height: 150px;
width:150px;
text-align:center;
background: none;
}
Comment #14
mokko CreditAttribution: mokko commentedI have the feeling that #13 doesn't work for IE6 and IE7, but this I cannot test anymore since they upgraded IE at work. Who can?
Comment #15
gfury CreditAttribution: gfury commentedI tried #13 and it seems to work for IE7 and IE8. The group of images is now left-justified (instead of centered) for all browsers, but I think I can live with that.
Comment #16
juliangb CreditAttribution: juliangb commentedSubscribe.
Comment #17
CandC540 CreditAttribution: CandC540 commented#13 seems to work for me in IE6. The best place that I've found to test cross-browser compatibility on a PC is http://spoon.net/browsers
Comment #18
juliangb CreditAttribution: juliangb commentedFrom my tests, #13 makes it work with IE6, IE7 and IE8.
Comment #19
joachim CreditAttribution: joachim commentedI don't understand exactly what changes are required by #13.
Here is a patch based on what I *think* is meant.
Could people test this please?
Comment #20
juliangb CreditAttribution: juliangb commentedYes, that's what fixed it for me.
Comment #21
joachim CreditAttribution: joachim commentedThanks!
Committed to CVS.
#575790 by mokko: Fixed CSS for galleries to work on IE*.
Comment #23
Kisama CreditAttribution: Kisama commentedThe current version of image.css does not contain the patch information, and thus break under IE 7 and earlier. I have manually edited my image.css to include these changes and it works, however the image.css file needs to be properly patched.
Comment #24
joachim CreditAttribution: joachim commentedIf you check the dates of this issue being closed (and the changelog for that matter) you'd see this was committed AFTER the release of beta 6. Please try the dev version and report back.
Comment #25
Kisama CreditAttribution: Kisama commentedI confirm this and apologize for any inconvenience I may have caused.