

Set the width and height to 100 and absolutely position it to the top left. Add a container for the iframe, determine the aspect ratio percentage, hide the overflow, and set its position to relative. I've written the Font Awesome folks to get their take before I indulged my initial impulse: to just delete that property-value pair throughout the CSS file. The 3 steps to create a responsive iframe that keeps its aspect ratio: Create the aspect ratio box. Which made me wonder if it's a newly allowed value that Flare has not caught up with yet.īecause it's not an error, I'm assuming that it's just being properly ignored by the parser, which is correct for CSS when there's an invalid value for a property, but the constant messaging is annoying.

But I could not find anything about this on the W3C site, and CSS Lint did not flag it as an error.
#Bypass inherit font size css code#
Because its not possible to set the height and width all the time while the same code execute with a different content. So its need to be dynamically set the content size when the content of iframe is loaded on the web page. Which opens up the Messages pane pretty much every time I'm working in the file, taking away screen real estate.Īccording to MDN, inherit is not a valid value for the line-height property. It is difficult to set the size of the content in the iframe tag as same as the main content. I looked, and this property-value pair is in nearly every selector in the Font Awesome CSS file.Īctually, it's not quite so much an error as a message. the idea that everything is 'reset' to default, when setting up your tailwind you probably want to set your a, p, html, and all your h's to what you would like, for example my html is sans, text-base, and my p's have a pt-4, all the h are diffrent h1-3 have serif with a size that i think is fit for that h size and 4+ is all sans again with diffrent grades of boldness.

I'm getting an error now that I have Font Awesome locally: CSS: Invalid line-height: inherit.
