StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-17-2009, 03:30 PM
evanw evanw is offline
Registered User
Genesis Member
 
Join Date: Mar 2009
Posts: 18
Default How To: Remove Excess Padding from Image Captions

If you're using the Agent theme, you might notice that there is quite a bit of excess padding below the caption text of images (see below).



The problem stems from the CSS for this theme and can be fixed easily. In style.css, add the following:

Code:
#contentleft .wp-caption-text {
	margin: 0px;
	padding: 0px;
	}
This will remove the extra padding and the captions will now look like this:



I also recommend adding lower margins to the .alignright and .alignleft sections. Search for ".alignright" or ".alignleft" and locate this code:

Code:
.alignright {
	float: right;
	}

.alignleft {
	float: left;
	}
Change that section to this:

Code:
.alignright {
	float: right;
	margin-bottom: 15px;
	}

.alignleft {
	float: left;
	margin-bottom: 15px;
	}
It took me quite awhile to figure out what to fix, so I hope this can be of use to you!

Evan
__________________
Evan Wondrasek
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ad banner (468x60) has excess padding, does not align in ie7 netslacker General Discussion 6 03-09-2009 06:40 PM


All times are GMT -5. The time now is 10:42 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.