How to Center a Headway Theme Leaf

Despite what many think, centering a headway leaf is not achieved by the click of a button. Instead, it’s achieved by trickery!

How to Center a Headway Leaf

The first thing we need to do is add leafs to either side of our target, like so:

First, Create a new text leaf on either side of your “target leaf.” Then click the pencil icon and in “custom css class(es)” enter “invisible.” Like this:

Once that’s done, Resize the two “invisible” leafs until you have the target leaf centered.  Finally, save your changes.

The CSS Code

Now, add the following code to the bottom of your custom.css file:

body.custom div.invisible .leaf-top {display: none;}
body.custom div.invisible {background: none; border: none; padding: 0; margin: 0;}

You’ll notice that I didn’t use “display:none;”. If you try and use that property, you’ll just undo the centering. You want the leaf to pretend to be invisible. That’s it!

The Final Result

Any Questions?

No, you cannot center a leaf with the visual editor.

Have you centered leafs on your headway installation? Have questions about centering leafs? Share your thoughts and opinions below!

You just finished reading How to Center a Headway Theme Leaf. Consider leaving a comment. Is the content out of date?
Let us know so we can update it.

http://headwayhub.com/2010/06/08/how-center-headway-theme-leaf/

Hey You! What's Powering Your Website?

No Need For WordPress Developers! Drag & Drop With Headway

Headway is a feature-rich, flexible and user-friendly WordPress theme which nearly eliminates the need for coding, and empowers average WordPress users to create unique, great looking WordPress sites.

Learn More About Headway Themes

Post comment as twitter logo facebook logo
Sort: Newest | Oldest

Thanks for this Corey, was wondering how to do this on Headway.

BTW what wp plugin do you use for you lightbox optin on your main page? Maybe that could be another tutorial.

thanks again

It's called Action PopUp and it's actually a premium product but it works well with Headway.
(http://headwayhub.com/go/actionpopup)