Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how i can solve the height and margin issue in cross- browser in following simple css. in internet explorer and Firefox the height of div elements are greater then specified as per screen size also margin between header to other div elements or footer to other element is uneven . **or any website reference form where i understand issue and find solution ** . thanks in advance

What I have tried:

CSS
@media screen and (max-width: 480px) 
{

  html ,body  
{
width : 100% ;
height :100% ;
font-size : 1rem ;
}

.header ,.footer
{
display : table-row;
background : white ;
height : 10% ;
width : 100% ;
overflow : auto ;
} 
.left
{
display : table-row;
background : red ;
height : 26.66666666666667%;
width : 100% ;
overflow : auto;

}
 .center
{
display : table-row;
background :blue ;
height : 26.66666666666667%;
width : 100% ;
overflow :auto ;
}
.right
{
display : table-row;
background : gray ;
height : 26.66666666666667%;
width : 100% ;
overflow : auto ; 

}

}
Posted
Updated 5-Oct-16 20:13pm
v2
Comments
Suvendu Shekhar Giri 6-Oct-16 2:16am    
would be great if you can create it in http://jsfiddle.net/[^]

1 solution

This is a quick test to see if we've sorted out a problem
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900