WordPress.org

Ready to get started?Download WordPress

Forums

WP-TopBar
[resolved] Set Top Bar width (5 posts)

  1. wchoa
    Member
    Posted 7 months ago #

    Is there a way to set the width or position of the TopBar plugin to the same width of the white space on my page? The website is: http://walnutcreekhoa.com

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

  2. Bob
    Member
    Plugin Author

    Posted 7 months ago #

    Try this for CSS OPTION C:

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

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

    Bob

  3. wchoa
    Member
    Posted 7 months ago #

    Thanks Bob,
    That worked for the most part. It gave me a starting point since I was trying to fill the entire white space (Left to right) on the page. I took your suggestion, played around a bit added a width to get what I wanted.
    The final piece of CSS OPTION C I used is:

    position:fixed; top: 40; padding:0; width: 70%; z-index: 99999; left: 50%; margin-left: -500px;

    I appreciate your help. Thank You!

  4. wchoa
    Member
    Posted 7 months ago #

    Bob,

    I tweaked it just a little more to keep the rounded edges on my page, which to me looks a bit better. So the final code is now:

    position:fixed; top: 40; padding:0; width: 67%; z-index: 99999; left: 50%; margin-left: -480px;

    Thanks again!

  5. Bob
    Member
    Plugin Author

    Posted 7 months ago #

    Yes -- looks great!

    Glad you were able to get what you needed!

Reply

You must log in to post.

About this Plugin

About this Topic