xerraire — 2011-09-13T09:32:56-04:00 — #1
I am trying to build a gallery for a client using CSS, it works great in Firefox and Chrome, however doesn't look the same in IE.
Would anyone here be so kind as to help direct me what I could change to help it to also work well in IE?
Thanks in advance,
ralphm — 2011-09-13T10:00:17-04:00 — #2
Hi Barb. Which versions of IE have you tested in? There are 4 in common use, each quite different.
xerraire — 2011-09-13T10:25:47-04:00 — #3
Ralph, I have 8 and my fiancé checked in his with IE 9.
Neither looked as great as our versions of Firefox 5 & 6.
IE doesn't allow for a row of 4, it reduces the thumbail row to 3 across, making the whole this aligned offset from FF having 4 in the rows.
Admittedly, I don't know a lot about CSS. This gallery looks great to help my clients show off their construction works in a quick and easy manner. She wanted something with tabs, and this script certainly delivers that.
paulob — 2011-09-13T12:19:17-04:00 — #4
The main problem in IE is that you don't have a doctype and without it all versions of IE will go back to last century and behave much like IE5 and render in quirks mode using the broken box model.
Add a current doctype such as this to the top of the page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
That must be the first line on the page and there can be nothing above it (not even comments).
Your page is using old fashioned code you would do well to bring it up to date a bit and lose the tables, font tags, breaks for spaces and stylesheets in the body. We can help you with that if you are interested in learning best coding practices
xerraire — 2011-09-15T10:58:59-04:00 — #5
Thank you Paul!
That worked perfectly!
Bless you for your help! You've saved me days of figuring it out!