pasteruc.blogg.se

Removing inherit font weight in css
Removing inherit font weight in css






removing inherit font weight in css

However, for the input element, it doesn't inherit any of those values, since it's a replaced element and serves its unique purpose. In the 2nd group: It forces those elements to inherit those values from body by using font: inherit. It's entirely up to you when to use it, for instance you might want to use tag for the site logo in the home page, and you probably want to make it look no difference than it appears on other pages. And of course, it's commonly being used in CSS reset frameworks.Using padding (and a unitless line-height on the body element) as basics in the author stylesheet to get the basic look I want, which is not unusual, I believe. I'm not using it to fix the issue with IE. Line-height: normal /* If indeed requires normalization */ Until the recent removal of input, this worked great.īut what we're suggesting here is to include that style IE applies padding on inputs just like any other browser. I was just substantiating the progress of this issue with a related issue (in my opinion) and example, i.e. inputs do require this normalization (except there's a better way to make IE inherit line-height like the other browsers).

removing inherit font weight in css

So, ideally, IE would expand the box of inputs with growing (inherited) line-height. padding can impossibly clip the text, an explicit height I was waiting to have some time to tackle this, but needed to iron some things.therefore padding can be applied to one low specific selector as a base style, selectors for height need to be unnecessarily specific.padding is ignored by checkboxes and radio buttons, height is not.I was not looking for an alternative to padding, which works just fine and is much more flexible than height: Since I don't know how this could possibly be done, I am all for line-height: normal coming back, because this makes inputs look quite consistent across browsers. Totally agree on removing font in favor of more specific properties. Totally agree with here regarding inherit: But I differ in the values you're proposing. Then I think we should avoid using inherit because this value relates to styles set by authors instead of styles set by UAs. In other words, I think normalizes.css should style elements the same regardless of projects and inherit does not help to achieve that.Īlso notice that inherit has been the reason of many opened issues and unexpected behaviours -that's why we removed color from input, among others. Use font-family: sans-serif since we already do this on the html.








Removing inherit font weight in css