I am beginner in site development and made all changes in my main theme. Now I want to transfer it all into child theme and faced this question. Are examples below equal?
.entry-header-wrapper {
//margin-bottom: 40px;
}
.entry-header-wrapper {
margin-bottom: none;
}
//
is not a valid way to comment in CSS, that will be a CSS 'error'. If you are asking how to override that element'smargin-bottom
in your child theme, then the stuff in your child theme's stylesheet will override the parent theme's, as long as the stylesheet is included after the parent's one.margin-bottom
should be0
, notnone
, if you want there to be0
margin.margin-bottom
is0
see