dirkfabisch / mediator

a medium inspired jekyll theme

Home Page:blog.base68.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Internet Explorer Error

danwatco opened this issue · comments

When visiting the blog in explorer, the main container doesn't work and the content is pushed to the edges of the windows and looks bad without any borders or padding.

Thanks

Hi @danwatco!

I don't have a PC with IE in order to check it, but what's your IE version? It seems to be the default behavior by IE rendering the following meta-tag:

<meta http-equiv="X-UA-Compatible" content="IE=edge">

You should check the link to MSDN provided by @dirkfabisch and test replacing it with the appropriate meta-tag for your IE version (i.e., assuming you're in IE 7):

<meta http-equiv="x-ua-compatible" content="IE=7" >

I hope you find it helpful!

Hi @miguelfito

I've tried all of the tags that are stated on the MSDN link, and none of them seem to change anything with the rendering of the container! I've also tried removing them all and still nothing!

Unfortunately I have no access to a Windows PC. What Version is the IE you are using?

I can confirm it doesn't work on latest IE version.

There are tools that help testing on IE without being able to install one:
https://www.modern.ie/en-us/virtualization-tools

Hi,

could some one please test if the issue could be closed?

I looked at my site (which uses Mediator) using IE yesterday, and the problem still exists.

I found out that my pull requests (#20 and #21) were not sufficient.
If we change <main class="content" role="main"> </main> to <div class="content" role="main"> </div> on index.html, the main container works correctly on IE11.
But I'm not sure that this change is the best solution of this problem.

Please check the latest commit. I think I found a fix for the behavior in IE. See also: HTML5 MAIN ELEMENT TAG NOT WORKING IN IE11

Looks good to me on IE11. The container works correctly.

Just to confirm, this appears to fix the template as far back as IE9. Thanks a bunch!