I have a problem in which i need to use @media in html. You use @media in css but now i need to use it in html but i cannot find a way on how to do so.
I expect to change some styling
CodePudding user response:
No.
The value of a style
attribute is equivalent to the body of a rule-set.
Rule-sets can go inside media queries. The reverse is not true.
CodePudding user response:
You have to add tag style and write inside it your @media css code, for example
<div>Element</div>
<style>
@media (max-width:360px){
div{
display: none;
}
}
</style>