Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] Custom Widget Margins


  #1  
Old Nov 13, 2011, 06:50 AM
Cheers
 
105 posts · Jun 2010
[SOLVED] Custom Widget Margins

I created a widget called "benefit-widget" and would like to have "0" margin for this specific widget. As is, the overall Atahualpa theme 3.7.1. adds a 15px margin at the bottom. Below this widget, I have a menu bar and so have an unwanted 15 pixel gap between this widget and the menu bar.

I tried adding this to the HTML/CSS Inserts:

div#benefit-widget { margin: 0 !important;}

I Tried,
div#benefit-widget { margin: -10 !important;}

I tried,
div#benefit-widget { margin: "" !important;}

I tried,
div#benefit-widget { margin: "0" !important;}

and I tried,
div#benefit-widget { margin: "0 0 0 0" !important;}


None of the above worked. Is this the correct way to specify a margin for a specific widget? I don't want to change margins for the other widgets -- only this one.

Thanks very much
  #2  
Old Nov 13, 2011, 07:49 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Without knowing what the HTML structure of the widget is, it is hard to say. Try using firebug in firefox to examine the area and experiment. What is the url
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by lmilesw; Nov 13, 2011 at 08:08 AM.
  #3  
Old Nov 13, 2011, 08:27 AM
Cheers
 
105 posts · Jun 2010
Hi JD,
URL is http://bestselectedgamesforseniors.com

When you go in there now, you won't see any gap. That is because in ATA options, style widgets, widget container, I changed margin: 0 0 15px 0; To margin: 0 0 0px 0;

But that also "smushes" up the other category widgets. So what I'm looking for is to style only the benefit-widget.

Thanks in advance,
  #4  
Old Nov 13, 2011, 09:59 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You have
HTML Code:
div#benefit-widget{margin:"0 0 0 0" !important}
that is invalid, no quotes. If you want th margin to be 0 use
HTML Code:
div#benefit-widget{margin:0 0 0 0 !important}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Nov 13, 2011, 10:27 AM
Cheers
 
105 posts · Jun 2010
JD,
I put the following code into custom html/css: div#benefit-widget{margin:0 0 0 0 !important}
and set the wiget theme settings back to default but now the gap is back.

I feel like such a firebug "clutz". I have absolutely no idea how you can look at a widget like that and find the margin coding.
When I look, I don't see that.

Last edited by Cheers; Nov 13, 2011 at 10:33 AM.
  #6  
Old Nov 13, 2011, 10:32 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
see any difference between
HTML Code:
<div id="benefit_widget" class="bfa_widget_area">
and
HTML Code:
div#benefit-widget {margin:0 30px 0 40px !important;}
look careful and then don't kick yourself when you find it.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
custom margins, widget margins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
BUGFIX 361-04: Allow Custom Menu widget links to use same styling as Pages widget. juggledad Old Version fixes and change logs 1 Jan 22, 2011 08:40 AM
Custom widget margin kal Sidebars & Widgets 1 Dec 20, 2010 03:00 PM
CSS widget: changing il margins to increase type leading between links/hard returns white gazelle Sidebars & Widgets 2 Sep 3, 2010 09:26 AM
[SOLVED] Widget margins. suwak Sidebars & Widgets 7 Jul 10, 2010 10:40 AM
[SOLVED] Widget border with equal margins? clothahump Sidebars & Widgets 2 Mar 26, 2010 02:39 AM


All times are GMT -6. The time now is 03:52 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.