Randomize
Randomize

Reputation: 9103

How to remove effects of a CSS class inside @media?

I have a situation like

<div class="foo">...</div>

where

.foo {float:left;}

How can I "disable" that float effect when I am inside @media?

Upvotes: 0

Views: 174

Answers (2)

Prakash M
Prakash M

Reputation: 390

You can set float: initial for that. This makes that element to default value. For More Info

Upvotes: 1

Taimoor Qureshi
Taimoor Qureshi

Reputation: 630

you can unset any property as in CSS

@media not|only mediatype and (expressions) {
   .foo {
       float: unset;
   }
}

Upvotes: 2

Related Questions