body
{
margin: 0px;
text-align: center;
background: #ced;
height: 100%;
}
html
{
height: 100%;
}
/* esse aqui e para o internet explorer */
* html #divCentral
{
height: 100%;
}
[quote]
achei esse código em uma video aula que dizia que era para o IE, mas não funcionou [/quote]
[code]/* esse aqui e para o internet explorer */
- html #divCentral
{
height: 100%;
} [/code]
tira o asterisco do código e vê se funciona
html #divCentral
{
height: 100%;
}
[quote=ismael.costa]tira o asterisco do código e vê se funciona
html #divCentral
{
height: 100%;
} [/quote]
já tentei dessa forma. mas tbm nao funcionou. tentei so colocar o #html, mas nada tbm
Não sei se é o que você está precisando ou se eu entendi o seu problema… segue o código abaixo:
<html>
<head>
<title></title>
<style>
*{
margin: 0px;
}
div{
border: 1px solid red;
height: 100%;
}
</style>
</head>
<body>
<div>
Teste
</div>
</body>
</html>
[quote=rcerullo]Não sei se é o que você está precisando ou se eu entendi o seu problema… segue o código abaixo:
[code]
*{
margin: 0px;
}
div{
border: 1px solid red;
height: 100%;
}
</style>
</head>
<body>
<div>
Teste
</div>
</body>
[/code][/quote]
Esse código que eu te passei ficou certinho no meu IE.