WordPress.org

Forums

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

  1. wchoa
    Member
    Posted 1 year 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 1 year 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 1 year 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 1 year 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 1 year ago #

    Yes -- looks great!

    Glad you were able to get what you needed!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-TopBar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic