Annul parent CSS code without adding new code
-
Hi everyone,
I recently stumbled upon a problem on my website that requires me to annul a parent css line without adding new code in the child css to override it (I’m using a modified Twenty Twelve theme).
I’m trying to format the scyscraper ad banner on the right – I had to give it a margin-left of 105px to not mask parts of my sidebar. This however caused the banner image to shrink:
Firebug showed be that this is a problem caused by a line in my parent css setting the max width of the object to 100%:
embed, iframe, object, video { max-width: 100%; }
If I disable the max-width, it works just fine.
I bypassed the problem by adding a line to my child css setting the max-width to 300%, but I don’t know if that causes problem with different screen resolutions. The best way would be to just delete the line of code, but I’d like to not touch the parent files.
Is there a way to just annul part of the parent css without directly deleting it?
- The topic ‘Annul parent CSS code without adding new code’ is closed to new replies.