I am a beginner in the world of responsive design and I'm currently figuring out how to properly layout plugins on a website when viewed on smartphones. Here's an example:
@media (min-width: 568px) {
.musicPlayer{
width:600px;
height:320px;
}
.Box, .List{
float:left;
}
.Box, .List{
width:50%;
height:100%;
}
}
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px) {
.musicPlayer{
width:600px;
height:1200px;
}
.Box, .List{
float:none;
}
.Box, .List{
width:100%;
height:50%;
}
}
Upon testing, I noticed that setting the .musicPlayer
width to 600px
made it almost half the page width on an iPhone. However, considering the iPhone has a total width of 320px, I found this confusing. Is there a different unit of measurement used in responsive design like em? Any thoughts or suggestions would be greatly appreciated. Check out this example for reference: