css - Pixel in media query doesn't match my browser -


i'm adding media query asp.net webapp. i'm trying make webapp change , different based on different type of mobile phone. show codes of media query , weird problem received.

/*media query*/  @media screen , (max-width: 1024px) {  #homebutton input[type=image] { position:absolute; left:0%; top:0%; margin: 0px; height:1000px; width:50%; } }     @media screen , (max-width: 800px) {  #homebutton input[type=image] { position:absolute; left:50%; top:0%; margin: 0px; height:70px; width:50%; } } 

based on understanding, whenever browser has size between 801px - 1024px, run

@media screen , (max-width: 1024px) 

code. , when browser has size of 0px - 800px, should run line of css code

@media screen , (max-width: 800px) 

however, when try extend browser width 802px, homebutton still show size of homebutton in media query css 800px instead of 1024px. why so? code wrong itself, or misunderstanding of media query logic on part. hope can me on this.

regards.

try use 798px 800px content width. not take consideration width of scroll , border of browser.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -