WordPress.org

Ready to get started?Download WordPress

Forums

WP-TopBar
[resolved] TopBar 50% and set in the center! (5 posts)

  1. I_Robert
    Member
    Posted 6 months ago #

    Hello,
    I was trying to set the topbar the width of 50% and aligned on the center of the page, on top above everything (push down).
    I read the other posts and tried unsuccessfully.

    Any idea?
    Thanks
    R

    http://wordpress.org/plugins/wp-topbar/

  2. Bob
    Member
    Plugin Author

    Posted 6 months ago #

    You'll need to play with the CSS like this:

    For CSS OPTION C:

    top: 40; padding:0; z-index: 99999; left: 50%; margin-left: -100px;

    Where -100PX is 1/2 of the size you want.

    Bob

  3. I_Robert
    Member
    Posted 6 months ago #

    Thank you Bob!
    I read about it on another post but
    I couldn't figure out the "margin-left: -100px" value.
    Can I tweak it too?
    If I put -50PX?

    Thanks so much!

    R

  4. Bob
    Member
    Plugin Author

    Posted 6 months ago #

    The PX stands for Pixels - not percent.

    I am not a CSS expert -- so I don't have much advice to give.

    If your topbar is 400px wide.. then you would put -200PX parameter to center the TopBar halfway.

    Bob

  5. Bob
    Member
    Plugin Author

    Posted 6 months ago #

    Closed - no response in over a week.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.