I have two doubts.
I want to display different elements in different screen size for a
div
by using@media
query? Can I name the same ID for all the elements.?Can I use same
id
for two elements where if one element displayed another element will be hidden by using@media
query?
Note: I know IDs are unique but here I want to use based upon the screen size.
media only screen and (min-width: 480px) {
}
@media only screen and (min-width: 768px) {
}
Please advice me.