Anthony N.
Anthony N.

Reputation: 295

css problems in IE11

I'm working on a web application and it goes without saying that cross browser is very important to me. My application works great on all browsers BUT IE11.

The piece of css in question is very simple

html,body {
    height:95%;
}

This is not working in IE11 and the page height is bigger than 100% of the screen.

The application is huge so I will not post small pieces of code which would only confuse you guys.

My question is: Any obvious issues with IE11 Height ? or should I be looking elsewhere ?

Upvotes: 1

Views: 502

Answers (4)

Niet the Dark Absol
Niet the Dark Absol

Reputation: 324620

By default, pages have margin. This means that in the absence of any CSS at all, your content will not squish against the edges of the window.

You must override this with margin:0 if you wish to have control over the exact height of your document.

Upvotes: 2

shishir
shishir

Reputation: 851

try adding height: 100vh; to your css class. It is fully supported in ie 11

Upvotes: 0

Collin Ostrowski
Collin Ostrowski

Reputation: 11

I'm pretty sure there are no issues with IE11 (even if I hate it) Your Code Should be like the code below.

body{
       height: 95%;
 } 

Upvotes: 0

FlipFloop
FlipFloop

Reputation: 1264

First, seperate your body from the comma. Then use vh like here:

html, body {
    height: 100vh;
}

this stackoverflow question might help

Upvotes: 0

Related Questions