I'm using media queries for the first time for my portfolio website. I
have to use **!important**
statement when I need to alter, lets say,
padding of a logo for a portrait version and also for a landscape
version. I have an external stylesheet linked to my media query
stylesheet and to over-ride styles from the main stylesheet I have to
use important for my media query in order for it to listen to it.
The !important
tags are stopping me from re-styling other devices further down the stylesheet because they are needed in order to style my ipad version of my website.
Seems that I can add a style into a query that is new like display:none
, but if I need to add padding-left:20px
, I need the !important
tag to over ride the main stylesheet.
Can you help?