Skip to main content

New answers tagged

Advice
0 votes
0 replies
0 views

In CSS, is it a code smell to use 'display: inherit'?

My point is: if you want to express an abstraction, such as copying the parent element's properties whatever they are, the best solution is the direct expression of this abstraction. If this ...
Sergey A Kryukov's user avatar
Advice
0 votes
0 replies
0 views

In CSS, is it a code smell to use 'display: inherit'?

If you are satisfied with the parent display, then you can use inherit. But, for example, block is shorter )) And in your example, you can generally specify it like this: .drawer { &.collapse { ...
imhvost's user avatar
  • 11.8k
Advice
0 votes
0 replies
0 views

In CSS, is it a code smell to use 'display: inherit'?

I'm having a bunch of them display: inherit; lately, and got me thinking of I really should rethink the decision
John Fred Fadrigalan's user avatar
Advice
0 votes
0 replies
0 views

In CSS, is it a code smell to use 'display: inherit'?

That's is what I'm actually thinking, I just got a bit confused if either the decision to use inherit here is justified since having inherit will also have a bit of an abstraction, Im kida weighing ...
John Fred Fadrigalan's user avatar
Advice
0 votes
0 replies
0 views

In CSS, is it a code smell to use 'display: inherit'?

There are many use cases of using inherit. In particular, it can help to reduce the number of repetitions in CSS. You question the objections against this approach here: ...because the code above ...
Sergey A Kryukov's user avatar

Top 50 recent answers are included