468,134 Members | 1,278 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,134 developers. It's quick & easy.

Overriding !important

97 64KB
I have an image slider that I've taken off my page for the mobile version of the site. But now I can't get it to display on larger devices.

I'm using media queries and the code is this:

Expand|Select|Wrap|Line Numbers
  1. @media query (mobile)
  2. .col1{ display:none !important; }
  3. @media query (tablet)
  4. .col1{ display:block !important; }
I know that's not how media queries are coded, they're just there for reference. I also know that using !important is not recommended, but I couldn't find another way to get rid of my slider, which is a slick slider, just fyi.

Is there another way to remove the slider, which would be the best option? If that won't work, can I override the !important?
May 21 '15 #1
0 2817

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by CoolPint | last post: by
1 post views Thread by Robert | last post: by
17 posts views Thread by Bob Weiner | last post: by
3 posts views Thread by Dan Jacobson | last post: by
2 posts views Thread by Anton Mellit | last post: by
27 posts views Thread by didacticone | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.