Forums

sidebar header, text alignment (5 posts)

  1. Ronnie
    Member
    Posted 9 months ago #

    i've changed the size of the sidebar header graphic and now now to align the header text within it.

    http://www.ronniewhittaker.com/?cat=16

    you'#ll see to the right the 'Recent comments' and visitor map' widgets.

    how best can i align the text back into the center of the header graphic? thank you

  2. peredur
    Member
    Posted 9 months ago #

    It is the cufon style rule that seems to be the place where you need to make your changes. The current rule is:

    cufon {
        display: inline-block !important;
        font-size: 1px !important;
        line-height: 1px !important;
        position: relative !important;
        vertical-align: middle !important;
    }

    If you add:

    margin-top: -20px;

    you get what I think you want.

    Goodness only knows where this style is defined, though. Firebug says it's defined in the HTML file, but I couldn't find it.

    So, an alternative is to add that style rule to every instance of the cufon element. It already has some inline styles which, I guess are added in JavaScript. Maybe you could do the same for the margin, by messing with the script.

    Messy!

    Cheers

    PAE

  3. Ronnie
    Member
    Posted 9 months ago #

    thanks for your help

    i found a cufon-yui.js file but can't find the specific text to the rule you've mentioned so maybe it's not here.. would you be able to tell if i'm looking in the right place?

    [Code moderated as per the Forum Rules. Please use the pastebin]

  4. peredur
    Member
    Posted 9 months ago #

    No. Not really. Looking at optimised JS is not good for your eyes. I would contact the people you got it from. They'll know how it works.

    I see it's something to do with fonts, is it?

    You need to find how that <cufon> element is generated or where the style rule is to be found. Maybe the developer, Simo Kinnunen, can help, or maybe there's something in the documentation.

    Cheers

    PAE

  5. Ronnie
    Member
    Posted 9 months ago #

    okay, thanks for looking, much appreciated... i'll see if the theme owner will shed some light

Reply

You must log in to post.

About this Topic

Tags

No tags yet.