1

When I inspect a web page I encounter an section element as section#sp-bottom

In the styles console, I see

#sp-bottom (
   margin: 10px 0px 0px 0px;
}

When I change the above 10px to 0px, I can see the page margin of 10px disappear.

Then in my custom.css of the template, i added

#sp-bottom {
   margin: 0px 0px 0px 0px;
}

But after clearing cache the page & browsing history, i still shows the 10px

Some please teach.

Minal Chauhan
  • 5,982
  • 8
  • 20
  • 39

4 Answers4

0

Try increasing more specificity by adding the tag name(section) to the css selector,

section#sp-bottom {
   margin: 0;
}
Manish Patel
  • 3,598
  • 1
  • 13
  • 22
Saravanan I
  • 1,220
  • 5
  • 9
0

You can try This.

section#sp-bottom{ margin:0px;}
Pravin Vavadiya
  • 3,099
  • 1
  • 15
  • 33
0

You might want to see this question.

I feel that your trying to edit your css through the browser. The content is in the memory therefore when you clear the cache it resets.

Hash
  • 7,328
  • 8
  • 32
  • 50
0

Try this

#sp-bottom {
   margin:0px !important;
}