Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Trying to place div element at top behind admin bar in Buddypress


jim2112
Participant

@jim2112

Thanks for the reply Modemlooper,

My page is not currently up.

I am trying to modify BuddyPress Default 1.2.3.

Here is part of header.php:

“</head>

<body <?php body_class() ?> id=”bp-default”>

<div id=”topbar”></div>

<?php do_action( ‘bp_before_header’ ) ?>

<div id=”header”>”

the Div I want to add is #topbar

#topbar {

background-color: #FFFF00;

width: 100%;

height: 22px;

margin: 0px auto 0px auto;

}

I can get it behind the admin bar but I can’t get to go to 100% of the browser. Width wise it will only go as wide as the admin bar.

for now I just set the background property to a color for testing.

Ideally I would like my div element to go 100% of the browsers and then I would like the admin bar to stay aligned with the main body at 960 pixs.

Skip to toolbar