• Resolved sth624

    (@sth624)


    I have added a simple text only navbar above the blog title in my header, and I have defined a new class in the stylesheet for the navbar. However, WP does not seem to recognize the new class.

    The code for the navbar:
    <tr><td class =”navbar”><((navbar stuff in here))></td></tr>

    If I add paragraph tags and define the class in the paragraph, then WP *does* recognize the class:
    <tr><td><p class =”navbar”><((navbar stuff in here))></td></tr>

    However! then my navbar displays with a line of padding above and below the bar itself, which I do not want.

    My WP is here: http://www.shws.net/journal

    Thanks for your help!

    //Steve

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter sth624

    (@sth624)

    blank

    http://css.maxdesign.com.au/listamatic/

    Your table is lacking the <table> open and close tags.
    Can I suggest you look at the link above ? All the code and css needed is supplied and it makes issues such as spacing much easier to deal with.

    Thread Starter sth624

    (@sth624)

    I figured it was something simple like that — thanks so much.

    Thread Starter sth624

    (@sth624)

    fixed. however the vertical whitespace between my navbar text and the horizontal rules expanded a tiny bit — i figure that’s just a function of drawing the table? I can live with it in any case — thanks again.

    Thread Starter sth624

    (@sth624)

    I’m off to play with the Listamatic CSS suggestions you sent — see what that can do for me – obviously I’m no CSS expert.

    listamatic is a fantastic place for all things lists – and if you have any problems at all, or want to alter anything, just post here 🙂

    Thread Starter sth624

    (@sth624)

    very cool — got it looking even better w CSS from that link!

    here’s another minor style issue I’m trying to resolve:

    The overall width of my blog is set using width=”95%” , and the placement of the menu sidebar is set using CSS as follows:

    #menu {
    background: #fff;
    padding: 10px 0 10px 10px;
    position: absolute;
    right: 30px;
    top: 130px;
    width: 11em;
    }

    when I resize the blog window width, I see the credit/footer bar peeking out the right side of the menu sometimes — most notably when I make the window fairly narrow.

    Obviously once I make enough posts to get the credit line below the bottom of the menu, this ceases to be a problem. but still, i’m a bit of a perfectionist… 🙂

    This is actually a problem with the page structure.

    Try this:
    in the theme file, enclose the credit line in a footer div

    <div id="footer">
    <p class="credit.....
    </div>

    then in your css, have

    #footer {
    clear:both;
    }

    and we’ll see if that works.

    Thread Starter sth624

    (@sth624)

    pure genius— appears to work! thanks yet again..

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘WP not recognizing new class …?’ is closed to new replies.