css - Applying media query to an element -


trying apply media query 1 particular div, nothing happening.

<style> @media screen , (min-device-width : 320px) , (max-device-width : 480px) { .rating {         margin: auto;   } </style> 

seems missed } after .rating

<style> @media screen , (min-device-width : 320px) , (max-device-width : 480px) { .rating {         margin: auto;   } } /* <-- 1 missed */`enter code here` </style> 

also if not device can try change min-device-width min-width same max-width.

also check device resolution accordingly , don't forgot add meta tag


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -