Remove image padding/margins

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Remove image padding/margins

Postby covermesongs » 29 Apr 2010, 19:33

I am trying to get rid of a whole lot of white space below one row of images contained in a sidebar widget. I'm referring to the four social networking icon in the right sidebar at http://www.covermesongs.com. The images themselves do not contain the white space. I have tried the following fixes:

1. Change the margin from 15px to 0px here:
Code: Select all
img {
border:0 none;
font-size:100%;
margin:0 0 15px;
outline:0 none;
padding:0;
}
Not only does this obviously affect all images, which I don't want, but it only removes about half of the white space anyway.

2. Change the padding of the widget box from 9px to 0px here:
Code: Select all
.dbx-content {
margin:0;
overflow:hidden;
padding:5px 10px 9px;
}
Again, this not only affects all boxes, but only removes a fraction of that white space.

Any ideas? I would like the same padding/margin for the images at the top and bottom of the widget. Thanks!
covermesongs
 
Posts: 49
Joined: 27 Mar 2010, 17:16

Re: Remove image padding/margins

Postby Connie » 29 Apr 2010, 23:23

Did you read this posting:

viewtopic.php?f=8&t=394

if not, there is all the information you need to identify CSS elements, to edit them etc.

So please, try to find the solutions yourself, we also have to do the same steps, as I am sure nobody knows all the CSS by heart :roll:
User avatar
Connie
 
Posts: 1163
Joined: 10 Nov 2009, 04:53

Re: Remove image padding/margins

Postby covermesongs » 30 Apr 2010, 18:32

Sorry if I wasn't clear. Yes, I know the information in that post by heart and have made dozens of changes already using that info. That's the reason I am so frustrated with this problem. I identified what seemed to be the relevant elements using Firebug (the two bits of code I posted originally), but changing them did no good. I can't figure out what I'm doing wrong.
covermesongs
 
Posts: 49
Joined: 27 Mar 2010, 17:16

Re: Remove image padding/margins

Postby sayontan » 30 Apr 2010, 20:21

Use more specific selectors, like "#text-3 img" (the id of that widget is "text-3") - that will take care of it.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: Remove image padding/margins

Postby covermesongs » 01 May 2010, 07:28

Thanks!
covermesongs
 
Posts: 49
Joined: 27 Mar 2010, 17:16


Return to Support Requests

Who is online

Users browsing this forum: Google [Bot], Thomas F and 4 guests