Hi Friends.,
In My Web Page height is varying for different screens (monitors) and browsers
Previously i had Declare height in pixels then the height is fixed for certain limit after that i converted into percentage it is varying from page to page (it means when content ends the height is also getting stopped or if content expands the height is also expanding) , i need to resolve this error
Actually what i need to do here is the height needs to be free as per device (monitor) height , i tried for media Query in CSS also there no changes in height Please let me get Solution Soon ASAP
Regards....,
R.V.Rajagopalan
Loading


Vikram AgrawalRank #4,713 · 329 reputationPosted Dec 9, 2014, 7:44 PM EST
you can take help from these links
http://www.studiopress.com/design/website-respond-mobile-devices.htm
https://developers.google.com/web/fundamentals/getting-started/your-first-multi-screen-site/responsive?hl=en
Rajagopalan R VRank #6,801 · 256 reputationPosted Dec 9, 2014, 9:20 PM EST
Thank You For Reply , And I Had Used the Media Query also Previously, in My Above Post i Had Mentioned About that Also it is Controlling Width only but not Height Please Try any Other Solution if Possible
With Regards.....,
R.V.Rajagopalan
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Dec 14, 2014, 9:24 PM EST
You have to use @media queries to set width as well height.
Have a look at this site to get the width and height http://mydevice.io/devices/
Rajagopalan R VRank #6,801 · 256 reputationPosted Dec 17, 2014, 3:58 AM EST
My Media Query Which i had Used :
@media all and (min-width: 10px) and (max-width: 2000px) and (min-height: 10px) and (max-height: 2000px)
{
......
......
......
......
......
}
Like this i had Declared For Both Width and Height For width its Working fine but Height not Aligning
Regards.....,
R.V.Rajagopalan
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Dec 17, 2014, 7:48 PM EST
Rajagopalan R VRank #6,801 · 256 reputationPosted Dec 21, 2014, 6:49 PM EST
#container
{
display: block;
width: 100%;
height: auto;
margin: 0 auto;
padding: 0;
}
#content
{
display: block;
min-height: 500px;
margin: 10px auto;
padding: 0 10px;
background: #fff;
border: solid 1px #ccc;
}
This is my code
Regards....,
R.V.Rajagopalan
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Dec 21, 2014, 8:38 PM EST
Please updated your sample here.