Removing the whitespace at the top of your Thesis blog

Post image for Removing the whitespace at the top of your Thesis blog

by bledsoe on January 19, 2010

If you use the Thesis theme for your WordPress blog, you might have created your own custom header image for your site (kind of like mine, above).  If so, you may have noticed that there's a little bit of whitespace between the top of your browser window and the top of your header image (kind of like mine, above).  If you want to get rid of that whitespace, you'll need to add a few lines of code to your Thesis custom.css file.  It's a simple fix, and here's how you do it.

Click on the Thesis Custom Styling option under the Appearance menu in your dashboard sidebar.  This allows you to make changes to your Thesis custom.css file.  At the bottom of this file, insert the following lines of code.

/* The following lines control the whitespace at the very top of the page (i.e., above the header image). If you set the padding-top property value to 0 (zero), your header image will be flush with the top of the page.
*/
.custom #page {
padding-top: 0;
}

You can also set the padding-top property value to something else if you actually want some amount of space between the top of the browser window and the top of your header image.

Save your changes, reload your blog page, and the whitespace will be gone.

Previous post:

Next post: