Which background-image takes precidence..media query or css?

Lprodigy

New Member
My question is about background-images. I was designing a home page for iPhone screen and I wanted to use a slightly different image for the mobile version. My media query was not in a separate css file, just embedded in the index.html. Problem...the main css image was overriding my query image. I checked for extra brackets etc. I thought the media queries had precidence over the main css? Would I have got my desired result if I had put the Media query in a css link file?
 
Back
Top