Processing
 

IE8 Not showing divs with floats

09/09/2016 16:48#1

Joined at: 4 months ago

Post: 2

Thank: 0

Thanked: 0

I've created an article looking page, which works on all browsers except IE8-... Which would be okay if this wasn't specifically aimed at IE using machines... The worst part is that I actually had this working at one point, but I sort of lost all my work when messing around with some cables under my desk, I really should've saved

Below is the way i'd like it to look like across all browsers(so far it only looks like this for everything aside from IE) IE8 Not showing divs with floats

And this is what it looks like on IE...

IE8 Not showing divs with floats

This is the current CSS, I couldn't see anything that springs to mind

div.GalleryColumn {display: inline; height: 320px; width: 95%; overflow: auto; display: inline;}  div.GalleryColumn.ColumnContent {width: 65%; max-height: 320px; margin-top: 25px; } div.GalleryColumn.ColumnContent:nth-child(odd) {float: right;} div.GalleryColumn.ColumnContent:nth-child(even) {float: left;  text-align: right;}  div.GalleryColumn.ColumnImage {width: 25%; height: 320px; margin-top: 25px;} div.GalleryColumn.ColumnImage:nth-child(odd) {     float: left;     margin-left: 50px;     -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.5);     -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.5);     box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.5); } div.GalleryColumn.ColumnImage:nth-child(even) {     float: right;     margin-right: 50px;     -webkit-box-shadow: -10px 10px 5px 0px rgba(0,0,0,0.5);     -moz-box-shadow: -10px 10px 5px 0px rgba(0,0,0,0.5);     box-shadow: -10px 10px 5px 0px rgba(0,0,0,0.56); } 

I don't know if any of this helps, I'm just confused because I had it working at one point, but now I've forgotten how to fix it at all

09/09/2016 16:54Top#2

Turi S.

Member

Joined at: 4 months ago

Post: 1

Thank: 0

Thanked: 0

Seems IE8 doesn't support the nth-child pseudo-class, so that's likely your problem.

https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child

Would it be pssible to add .left and .right classes to the individual elements?

09/09/2016 17:00Top#3

Joined at: 4 months ago

Post: 2

Thank: 0

Thanked: 0

div.GalleryColumn.ColumnContent {float: left; width: 65%; max-height: 320px; margin-top: 25px; }  div.GalleryColumn.ColumnImage {float: right; width: 25%; height: 320px; margin-top: 25px;} 

This is how I had it the last time! As IE8 doesn't support :nth-child() [Thanks for @Turi for reminding] I had it simply default to having text on one side, and images on the other. If their using IE8, they probably don't want to see the "fun" alternating text/image anyway...

So now IE8 will look like this while the others still alternate

Similar articles

IE9 dosen't support my Button Tag

4 months ago - Reply: 0 - Views: 14

SSRS 2016 Web protal in IE8

4 months ago - Reply: 0 - Views: 13

how to handle @keyframes not supported by ie9?

4 months ago - Reply: 0 - Views: 5

Detect Windows XP in Firefox with JS

4 months ago - Reply: 1 - Views: 47

IE8 Not showing divs with floats

4 months ago - Reply: 2 - Views: 130

Including ECMA 5 script in IE8

5 months ago - Reply: 1 - Views: 98

XDomainRequest does not work in ie8 & ie9

5 months ago - Reply: 0 - Views: 10

How to minify angular.js?

5 months ago - Reply: 1 - Views: 30

VBA and IE8 - scrape text buried in table

5 months ago - Reply: 1 - Views: 37

Detect http satus IE10

5 months ago - Reply: 0 - Views: 6

how to compress angular.js?

5 months ago - Reply: 0 - Views: 3

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re