On my homepage. On the right side I add Block 7 and Block 5. There is a big white gap between them and I would like to reduce this distance. (check the photo I add here)
http://www.alexiptoto.com/wp-content/uploads/2014/09/Blue_flag_beach_20091-635×483.jpg
Can you tell me from where I can fix it???
Thank you very much
Hi,
Please use this custom css in theme panel > custom css:
.home .span4 .td_block7 .td_mod2 {
margin-bottom: 0px;
}
Set a larger value for margin if you want some space there.
Should work like this: http://screencast.com/t/8Ay8xJoj8
Thanks
Hi can you please let me know if there some change in the CSS, as I had included the code provided by you in the CSS panel, but its not working for me.
Hi,
As you can see, the topic is form almost 2 years back. The code will not work anymore as the theme has been updated many times since then. You can target your blocks using the browser inspector and use the specific css classes like so: http://screencast.com/t/IklwH06h21Xq
In this case, if you want to remove the padding, you would use the code like so:
.td_block_7.td_block_wrap{
padding-bottom: 0!important;
}
I also added the block 7 class so the code will be more specific as multiple blocks use the .td_block_wrap class and if I were to only leave this class in the code, ALL the blocks will have the padding removed.
Hope this helps.
Thank you!
Hi Bogdan – Thanks for your quick response. The code provided by you works good for the blocks. But what about the widgets in the sidebar. I am interested to remove the white spaces from there.
Can you please help.
Thanks
Hi – Here is the link: http://www.askopexguru.com/
Thanks
Hi,
For those particular widgets please use this code:
.widget_text{
margin-bottom:0!important
}
.widget{
margin-bottom: 5px!important;
}
You can use your browser inspector to get the specific classes and see the margins and padding on every element if you require this in any future customization:
Right click the element and select ‘inspect’: http://screencast.com/t/xESxPXQ6fg
Then you simply copy the classes for the element and modify the css property.
Hope this helps.
Thanks.
Thanks a lot for your support.
This is the code I added:
.widget_text{ margin-bottom:0!important }
.widget{ margin-bottom: 2px!important; }
.widget_text{ margin-top:0!important }
.widget{ margin-top: 2px!important; }
And it has done wonders for me
Thanks again
