Trying to place div element at top behind admin bar in Buddypress
-
CSS beginner here.
I have an existing WP site that has a fixed position <div> at the top 0 margin that is set to 100% width. It has some links in it to other pages. It’s 22 pixs in height and populated by a repeating background image 5 x 22 pixs. I would like to carry over this to my buddypress site as well. I was hoping to place it behind the admin bar. Then remove the admin bar image to make it clear so that the admin bar text sits on top of my other bar element.
I can get a my div behind the admin bar but when i set it to 100% width it won’t go beyond the confines of the box that the admin bar is sitting in. I can’t figure out why my div element is being restricted in width.
I’m guessing this is something simple for someone who knows CSS.
I’m thinking this <body <?php body_class() ?> id=”bp-default”>
is somehow defining the max width of all DIV elements on the page?
Can anyone help me?
Thanks
- The topic ‘Trying to place div element at top behind admin bar in Buddypress’ is closed to new replies.