I am trying to center a div that wil constantly appear when scrolling. How shall I center it because I have tried all the methods I've seen and none appear to work. Here is the code:
#header { position:fixed; top:0%; left:0%; height:100px; width:100%; } <div id='header'> <button class='butt'>Home</button> <button class='butt'>Home</button> <img id='logo' src='Website/GUGM still logo.png' /> <!--Header That Moves--> <button class='butt'>Home</button> <button class='butt'>Home</button> </div>