Change website design for mobile devices or browser resize
问题 Im sorry if this has been asked before im sure somewhere there must be an answer for this but for some or other reason I cant find it, probably using wrong search query I know you can use media queries to target different devices like so: @media only screen and (max-device-width: 480px) { div#wrapper { width: 400px; } } But what I would like to know is, how to change my websites design based on device it is viewed on? Example Lets say my normal site structure is like this: if desktop <div id=