Log in

View Full Version : CSS to remove spaces (padding-top) & change sidebar



angelium
06-08-2017, 10:02 PM
Hello,

I have tried to remove the spaces under the title of my blog : http://www.penser-ensemble.eu/sujets/actualite/

under this title (Pôle d’Echanges pour les Solidarités Educatives)

the spaces come from the padding-top of the section below it, so i’ve tried to add :

#et_pb_section et_pb_section_0 et_section_regular et_pb_section_first { padding-top : 5px !important;}

But nothing happened! any idea ?

My second question is how to make the side bar of this page larger (in order to make it more organised).

Thank you !

coothead
06-09-2017, 09:25 AM
Hi there angelium,


the problem is that this damaging code...



<div class="et_pb_section et_pb_section_0 et_section_regular et_pb_section_first" data-fix-page-container="on" style="padding-top: 110px;">

...is dynamically created and the inline style cannot be overridden. :eek:

All is not lost, though.

There is often more than one way to skin a cat. :D

Add this to your CSS...



div[style="padding-top: 110px;"] {
margin-top: -90px; /* adjust value to suit */
background: transparent;
}



coothead