How to add a text bar at top


Author Message
keithstoddart

Posted: 4/2/2012
Quote message 

I want to put a fixed bar at the top of my site with some text in it (telephone numbers etc.). That stays there when it is scolled up and down. It sits above the header and allows all of the site to scroll up under it.
I have tried everything I know.
Look forward to replies.
regards
keith
 
techtom

Posted: 4/2/2012
Quote message 

In your header.php after <div class="art-header">

add this <div id="statictopbar">but your menu code here</div>

Then add this to your style.css and modify to your needs.

div#statictopbar
{

height: 80px;
width:800px;
position:fixed;
top:0;
left:50%;
margin-left: -400px;
color: #FFFFFF;
background-color: #333;
border:solid 1px #333;
z-index:1000;

}

you may need to move your sheet down to accommodate the menu

.art-sheet {margin-top:81px;}