سؤال

I have this html file and css here, but when I tried to set the padding of the article tag, there is no effect. Cloud anyone explain why?

هل كانت مفيدة؟

المحلول 2

A cursory inspection of the element shows that the padding is being overridden. If you examine the rule that is providing the new value of 0rem you'll note that it comes from line 26 of index.html.

enter image description here

نصائح أخرى

It gets overridden on the bottom of your CSS file:

header, article, section, .module {
  padding: 0rem;
}

You should remove article from there.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top